desk-exec: init at 1.0.2 (#356280)

This commit is contained in:
Aleksana 2024-11-23 17:16:56 +08:00 committed by GitHub
commit 66af7da8a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View File

@ -2273,6 +2273,12 @@
githubId = 206242;
name = "Andreas Wiese";
};
axertheaxe = {
email = "axertheaxe@proton.me";
github = "axertheaxe";
githubId = 99703210;
name = "Katherine Jamison";
};
ayazhafiz = {
email = "ayaz.hafiz.1@gmail.com";
github = "hafiz";

View File

@ -0,0 +1,40 @@
{
lib,
fetchFromGitHub,
rustPlatform,
installShellFiles,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "desk-exec";
version = "1.0.2";
src = fetchFromGitHub {
owner = "AxerTheAxe";
repo = "desk-exec";
rev = "refs/tags/v${version}";
hash = "sha256-bJLdd07IAf+ba++vtS0iSmeQSGygwSVNry2bHTDAgjE=";
};
cargoHash = "sha256-pK1WDtGkpPZgFwEm59TqoH7EkKPQivNuvsiOG0dbum4=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
pushd target/${stdenv.hostPlatform.config}/release/dist
installShellCompletion desk-exec.{bash,fish}
installShellCompletion _desk-exec
installManPage desk-exec.1
popd
'';
meta = {
description = "Execute programs defined in XDG desktop entries directly from the command line";
homepage = "https://github.com/AxerTheAxe/desk-exec";
license = lib.licenses.unlicense;
maintainers = [ lib.maintainers.axertheaxe ];
mainProgram = "desk-exec";
platforms = lib.platforms.linux;
};
}