mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
d4f3c6611b
Diff: https://github.com/kyu08/fzf-make/compare/v0.21.0...v0.22.0 Changelog: https://github.com/kyu08/fzf-make/releases/tag/v0.22.0
41 lines
957 B
Nix
41 lines
957 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, makeBinaryWrapper
|
|
, runtimeShell
|
|
, bat
|
|
, gnugrep
|
|
, gnumake
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fzf-make";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kyu08";
|
|
repo = "fzf-make";
|
|
rev = "v${version}";
|
|
hash = "sha256-MeJRXvMshhnNWNkEtOfxKMLLqoLjOREuDGcRHTnOxS8=";
|
|
};
|
|
|
|
cargoHash = "sha256-pHunUez3bsGwcSuQzx3DEDSKxx6UlUcuU35frEsc0+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";
|
|
};
|
|
}
|