depot/third_party/nixpkgs/pkgs/development/tools/misc/fzf-make/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

40 lines
957 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, makeBinaryWrapper
, runtimeShell
, bat
, gnugrep
, gnumake
}:
rustPlatform.buildRustPackage rec {
pname = "fzf-make";
version = "0.14.0";
src = fetchFromGitHub {
owner = "kyu08";
repo = "fzf-make";
rev = "v${version}";
hash = "sha256-2Q/rqSJJbjLSN+63oRi9ouW4A7Hb0oyyhOdA/DeCTyE=";
};
cargoHash = "sha256-DKxDWar8g71uvAZ9KzN14xRwpvIa1dD7iFACb6nio+8=";
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";
};
}