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-03 16:02:59 +00:00
version = "0.27.0";
2023-08-18 19:19:10 +00:00
src = fetchFromGitHub {
owner = "kyu08";
repo = "fzf-make";
rev = "v${version}";
2024-04-03 16:02:59 +00:00
hash = "sha256-OgvPUk5q7DB9hakZzCUM2dlXMQzE/CGpg4pMDQCk7k0=";
2023-08-18 19:19:10 +00:00
};
2024-04-03 16:02:59 +00:00
cargoHash = "sha256-MTOafmrlaW8WNUqsG2c/WnbG9ZKbq9zdou6buB4Qo/k=";
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";
};
}