Files
nixpkgs/pkgs/by-name/fz/fzf-make/package.nix
Michael Daniels 1d0bb7b61b treewide: drop figsoda as maintainer (part 3)
s/^\s*figsoda\s*$//
2025-11-02 20:16:11 -05:00

50 lines
1002 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
makeBinaryWrapper,
runtimeShell,
bat,
gnugrep,
gnumake,
}:
rustPlatform.buildRustPackage rec {
pname = "fzf-make";
version = "0.65.0";
src = fetchFromGitHub {
owner = "kyu08";
repo = "fzf-make";
rev = "v${version}";
hash = "sha256-KL2dRyfwwa365hEMeVixAP9DFx3QObJVeesj95tOUmo=";
};
cargoHash = "sha256-QaR0Se8ecNKj7OcngwEOrK63VT200D+/Xm3RaIiLdec=";
nativeBuildInputs = [ makeBinaryWrapper ];
postInstall = ''
wrapProgram $out/bin/fzf-make \
--set SHELL ${runtimeShell} \
--suffix PATH : ${
lib.makeBinPath [
bat
gnugrep
gnumake
]
}
'';
meta = {
description = "Fuzzy finder for Makefile";
inherit (src.meta) homepage;
changelog = "https://github.com/kyu08/fzf-make/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
sigmanificient
];
mainProgram = "fzf-make";
};
}