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-28 12:03:58 +00:00
version = "2.9.0";
2020-08-01 19:17:55 +00:00
src = fetchFromGitHub {
owner = "denisidoro";
repo = "navi";
rev = "v${version}";
2020-08-28 12:03:58 +00:00
sha256 = "16rwhpyk0zqks9z9bv2a1a8vww2m6867kg33bjbr29hawjg68jql";
2020-08-01 19:17:55 +00:00
};
2020-08-28 12:03:58 +00:00
cargoSha256 = "19w9gm389lj1zwhyjifhc2fzkvrvqvyc80lwxz070cnj11ir2l9m";
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 ];
};
}