3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/navi/default.nix

30 lines
811 B
Nix
Raw Normal View History

2020-08-01 20:17:55 +01:00
{ rustPlatform, fetchFromGitHub, lib, fzf, makeWrapper }:
rustPlatform.buildRustPackage rec {
pname = "navi";
2020-08-28 13:03:58 +01:00
version = "2.9.0";
2020-08-01 20:17:55 +01:00
src = fetchFromGitHub {
owner = "denisidoro";
repo = "navi";
rev = "v${version}";
2020-08-28 13:03:58 +01:00
sha256 = "16rwhpyk0zqks9z9bv2a1a8vww2m6867kg33bjbr29hawjg68jql";
2020-08-01 20:17:55 +01:00
};
2020-08-28 13:03:58 +01:00
cargoSha256 = "19w9gm389lj1zwhyjifhc2fzkvrvqvyc80lwxz070cnj11ir2l9m";
2020-08-01 20:17:55 +01: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 ];
};
}