Files
nixpkgs/pkgs/by-name/ra/raffi/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

42 lines
973 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
makeBinaryWrapper,
fuzzel,
additionalPrograms ? [ ],
}:
rustPlatform.buildRustPackage rec {
pname = "raffi";
version = "0.8.2";
src = fetchFromGitHub {
owner = "chmouel";
repo = "raffi";
rev = "v${version}";
hash = "sha256-97gZZp2taX800Izhya4mYzS4PtCNCBbRnrn6cm1w8zY=";
};
cargoHash = "sha256-1n0JQdeExszuGFbpkBRT44eMov/x3BrIeofObdPNNdU=";
nativeBuildInputs = [
makeBinaryWrapper
];
postFixup = ''
wrapProgram $out/bin/raffi \
--prefix PATH : ${lib.makeBinPath ([ fuzzel ] ++ additionalPrograms)}
'';
meta = {
description = "Fuzzel launcher based on yaml configuration";
homepage = "https://github.com/chmouel/raffi";
changelog = "https://github.com/chmouel/raffi/releases/tag/v${version}";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ aos ];
mainProgram = "raffi";
platforms = lib.platforms.linux;
};
}