mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
makeBinaryWrapper,
|
|
runtimeShell,
|
|
bat,
|
|
gnugrep,
|
|
gnumake,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "fzf-make";
|
|
version = "0.73.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kyu08";
|
|
repo = "fzf-make";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-v3AmcLFnPZb6zJ1Gx5R2vNPtPHQzb8gyVlMj76rvO1s=";
|
|
};
|
|
|
|
cargoHash = "sha256-rcBJIBmGT27OA0MUh2fTf+wQO+7tabL2vpG8eJw5lhA=";
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/fzf-make \
|
|
--set SHELL ${runtimeShell} \
|
|
--suffix PATH : ${
|
|
lib.makeBinPath [
|
|
bat
|
|
gnugrep
|
|
gnumake
|
|
]
|
|
}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Fuzzy finder for Makefile";
|
|
inherit (finalAttrs.src.meta) homepage;
|
|
changelog = "https://github.com/kyu08/fzf-make/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
sigmanificient
|
|
];
|
|
mainProgram = "fzf-make";
|
|
};
|
|
})
|