nixpkgs/pkgs/applications/misc/navi/default.nix

30 lines
811 B
Nix
Raw Normal View History

2020-08-01 19:17:55 +00:00
{ rustPlatform, fetchFromGitHub, lib, fzf, makeWrapper }:
rustPlatform.buildRustPackage rec {
pname = "navi";
2020-08-23 08:18:29 +00:00
version = "2.8.0";
2020-08-01 19:17:55 +00:00
src = fetchFromGitHub {
owner = "denisidoro";
repo = "navi";
rev = "v${version}";
2020-08-23 08:18:29 +00:00
sha256 = "0w63yx4c60r05nfswv61jw3l3zbl5n1s396a6f4ayn52fb6rxwg1";
2020-08-01 19:17:55 +00:00
};
2020-08-23 08:18:29 +00:00
cargoSha256 = "06xpk04nxkm7h4nn235x8a4gi0qhscj8kkl2f9gqphlfmm56kjfn";
2020-08-01 19:17:55 +00:00
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/navi --prefix PATH : ${lib.makeBinPath [ fzf ]}
'';
meta = with lib; {
description = "An interactive cheatsheet tool for the command-line and application launchers";
homepage = "https://github.com/denisidoro/navi";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ cust0dian ];
};
}