-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
980289d
commit e36a350
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |