depot/third_party/nixpkgs/pkgs/development/tools/misc/fzf-make/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

42 lines
962 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, makeBinaryWrapper
, runtimeShell
, bat
, gnugrep
, gnumake
}:
rustPlatform.buildRustPackage rec {
pname = "fzf-make";
version = "0.7.0";
src = fetchFromGitHub {
owner = "kyu08";
repo = "fzf-make";
rev = "v${version}";
hash = "sha256-QxEYa8+sY7fQVvoXkUJOJkbumus2tYM6T1GmkJRnUHY=";
};
cargoHash = "sha256-EpFSZlzzoZ+Wzsvj5pSk5UhesbftcTFn6t1ZUOHdZsk=";
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";
};
}