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-04-17 19:21:32 +00:00
version = "0.28.0";
2023-08-18 19:19:10 +00:00
src = fetchFromGitHub {
owner = "kyu08";
repo = "fzf-make";
rev = "v${version}";
2024-04-17 19:21:32 +00:00
hash = "sha256-USBK3In/1Uor33wrab1iTt0akQTcjuHd7I86XfERzzg=";
2023-08-18 19:19:10 +00:00
};
2024-04-17 19:21:32 +00:00
cargoHash = "sha256-zEcll6X0iclDap40bQ1CXuVBQnVin8VwjpErm+/B0ZY=";
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";
};
}