nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 41 lines 973 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 makeBinaryWrapper, 6 fuzzel, 7 additionalPrograms ? [ ], 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "raffi"; 12 version = "0.8.2"; 13 14 src = fetchFromGitHub { 15 owner = "chmouel"; 16 repo = "raffi"; 17 rev = "v${version}"; 18 hash = "sha256-97gZZp2taX800Izhya4mYzS4PtCNCBbRnrn6cm1w8zY="; 19 }; 20 21 cargoHash = "sha256-1n0JQdeExszuGFbpkBRT44eMov/x3BrIeofObdPNNdU="; 22 23 nativeBuildInputs = [ 24 makeBinaryWrapper 25 ]; 26 27 postFixup = '' 28 wrapProgram $out/bin/raffi \ 29 --prefix PATH : ${lib.makeBinPath ([ fuzzel ] ++ additionalPrograms)} 30 ''; 31 32 meta = { 33 description = "Fuzzel launcher based on yaml configuration"; 34 homepage = "https://github.com/chmouel/raffi"; 35 changelog = "https://github.com/chmouel/raffi/releases/tag/v${version}"; 36 license = with lib.licenses; [ asl20 ]; 37 maintainers = with lib.maintainers; [ aos ]; 38 mainProgram = "raffi"; 39 platforms = lib.platforms.linux; 40 }; 41}