pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / fz / fzf-make / package.nix
blob4e0bd6de84a23edc2b65d506c9f3a230938b61f2
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , makeBinaryWrapper
5 , runtimeShell
6 , bat
7 , gnugrep
8 , gnumake
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "fzf-make";
13   version = "0.37.0";
15   src = fetchFromGitHub {
16     owner = "kyu08";
17     repo = "fzf-make";
18     rev = "v${version}";
19     hash = "sha256-msSiVlz6Aey8Q+NjtKl58TOkYtPIzw3733kVGs9/8UQ=";
20   };
22   cargoHash = "sha256-q67UAAVvc070eArfMo4r/UcUUjODuR/vMukiA4ylQ5w=";
24   nativeBuildInputs = [ makeBinaryWrapper ];
26   postInstall = ''
27     wrapProgram $out/bin/fzf-make \
28       --set SHELL ${runtimeShell} \
29       --suffix PATH : ${lib.makeBinPath [ bat gnugrep gnumake ]}
30   '';
32   meta = {
33     description = "Fuzzy finder for Makefile";
34     homepage = "https://github.com/kyu08/fzf-make";
35     changelog = "https://github.com/kyu08/fzf-make/releases/tag/${src.rev}";
36     license = lib.licenses.mit;
37     maintainers = with lib.maintainers; [ figsoda sigmanificient ];
38     mainProgram = "fzf-make";
39   };