nixpkgs/pkgs/by-name/fz/fzf-make/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
957 B
Nix
Raw Normal View History

2023-08-18 19:19:10 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, makeBinaryWrapper
2023-08-19 13:16:36 +00:00
, runtimeShell
, bat
, gnugrep
2023-08-18 19:19:10 +00:00
, gnumake
}:
rustPlatform.buildRustPackage rec {
pname = "fzf-make";
2024-05-03 02:26:40 +00:00
version = "0.30.0";
2023-08-18 19:19:10 +00:00
src = fetchFromGitHub {
owner = "kyu08";
repo = "fzf-make";
rev = "v${version}";
2024-05-03 02:26:40 +00:00
hash = "sha256-C2CDzcS6iE2ojXtFjQfHDJE2C1b5QNG6rda/MiDW8kk=";
2023-08-18 19:19:10 +00:00
};
2024-05-03 02:26:40 +00:00
cargoHash = "sha256-N5hM5xTMNeryFgdICQcKvPt4lHgh02DCaPD3TTGmFBo=";
2023-08-18 19:19:10 +00:00
2024-01-01 16:37:27 +00:00
nativeBuildInputs = [ makeBinaryWrapper ];
2023-08-18 19:19:10 +00:00
postInstall = ''
wrapProgram $out/bin/fzf-make \
2023-08-19 13:16:36 +00:00
--set SHELL ${runtimeShell} \
--suffix PATH : ${lib.makeBinPath [ bat gnugrep gnumake ]}
2023-08-18 19:19:10 +00:00
'';
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 ];
2023-08-18 19:19:10 +00:00
mainProgram = "fzf-make";
};
}