Skip to content

Commit

Permalink
desk-exec: init at 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AxerTheAxe committed Nov 15, 2024
1 parent 980289d commit e36a350
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/by-name/de/desk-exec/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
, stdenv
,
}:

rustPlatform.buildRustPackage rec {
pname = "desk-exec";
version = "1.0.2";

src = fetchFromGitHub {
owner = "AxerTheAxe";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-bJLdd07IAf+ba++vtS0iSmeQSGygwSVNry2bHTDAgjE=";
};

cargoHash = "sha256-pK1WDtGkpPZgFwEm59TqoH7EkKPQivNuvsiOG0dbum4=";

nativeBuildInputs = [ installShellFiles ];

postInstall = ''
installShellCompletion target/${stdenv.targetPlatform.config}/release/dist/desk-exec.{bash,fish}
installManPage target/${stdenv.targetPlatform.config}/release/dist/desk-exec.1
'';

meta = with lib; {
description = "Execute programs defined in XDG desktop entries directly from the command line";
homepage = "https://github.com/AxerTheAxe/desk-exec";
license = licenses.unlicense;
maintainers = [ maintainers.axertheaxe ];
platforms = platforms.linux;
};
}

0 comments on commit e36a350

Please sign in to comment.