51 lines
1016 B
Nix
51 lines
1016 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitHub,
|
||
|
|
makeBinaryWrapper,
|
||
|
|
runtimeShell,
|
||
|
|
bat,
|
||
|
|
gnugrep,
|
||
|
|
gnumake,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "fzf-make";
|
||
|
|
version = "0.62.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "kyu08";
|
||
|
|
repo = "fzf-make";
|
||
|
|
rev = "v${version}";
|
||
|
|
hash = "sha256-WUQW3I/dFO510v5JzShydMO3N8QYrKqDAJUzDdUZg0U=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-8V++82edFMJ8/B1aLAK2MhW2g1usg3eBt60SIUuKong=";
|
||
|
|
|
||
|
|
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; [
|
||
|
|
figsoda
|
||
|
|
sigmanificient
|
||
|
|
];
|
||
|
|
mainProgram = "fzf-make";
|
||
|
|
};
|
||
|
|
}
|