nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 installShellFiles, 6 stdenv, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "desk-exec"; 11 version = "1.0.2"; 12 13 src = fetchFromGitHub { 14 owner = "AxerTheAxe"; 15 repo = "desk-exec"; 16 tag = "v${version}"; 17 hash = "sha256-bJLdd07IAf+ba++vtS0iSmeQSGygwSVNry2bHTDAgjE="; 18 }; 19 20 cargoHash = "sha256-lwc+zth4qCynErG3ldUnu/lX4NfZfxn+XDzJA/kp7S4="; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 postInstall = '' 25 pushd target/${stdenv.hostPlatform.config}/release/dist 26 installShellCompletion desk-exec.{bash,fish} 27 installShellCompletion _desk-exec 28 installManPage desk-exec.1 29 popd 30 ''; 31 32 meta = { 33 description = "Execute programs defined in XDG desktop entries directly from the command line"; 34 homepage = "https://github.com/AxerTheAxe/desk-exec"; 35 license = lib.licenses.unlicense; 36 maintainers = [ lib.maintainers.axertheaxe ]; 37 mainProgram = "desk-exec"; 38 platforms = lib.platforms.linux; 39 }; 40}