42 lines
963 B
Nix
42 lines
963 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, makeBinaryWrapper
|
|
, runtimeShell
|
|
, bat
|
|
, gnugrep
|
|
, gnumake
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fzf-make";
|
|
version = "0.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kyu08";
|
|
repo = "fzf-make";
|
|
rev = "v${version}";
|
|
hash = "sha256-YsX7PltOw5cDjQv9X5ZRsn5qCzus6QTUva98bd+wngo=";
|
|
};
|
|
|
|
cargoHash = "sha256-4YnVvkROjZD+erITzP3O4p/EVw/zjfOYRNmi1ykwtug=";
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/fzf-make \
|
|
--set SHELL ${runtimeShell} \
|
|
--suffix PATH : ${lib.makeBinPath [ bat gnugrep gnumake ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fuzzy finder for Makefile";
|
|
homepage = "https://github.com/kyu08/fzf-make";
|
|
changelog = "https://github.com/kyu08/fzf-make/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda sigmanificient ];
|
|
mainProgram = "fzf-make";
|
|
};
|
|
}
|