navi: 2.0.11 -> 2.1.1

This commit is contained in:
Ingolf Wagner 2020-03-16 15:24:16 +08:00
parent 5c20aaad6d
commit 8c207e5566
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,30 +1,29 @@
{ rustPlatform, fetchFromGitHub, stdenv, fzf, makeWrapper }: { rustPlatform, fetchFromGitHub, stdenv, fzf, makeWrapper, openssl, pkgconfig }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "navi"; pname = "navi";
version = "48c2b64f7f184dc351d04d2fe2bda1b2313b8d79"; version = "2.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "denisidoro"; owner = "denisidoro";
repo = "navi"; repo = "navi";
# rev = "v${version}"; rev = "v${version}";
rev = "${version}"; #rev = "${version}";
sha256 = "1y7mfai7a0hwzq7kw997w0jwjpzqr2wcfr66jxf60k2jpbf4bk8h"; sha256 = "1195f7c3ij2mkv0k1h9fwn6jkyjb01w0p6mj2xc39w5f6i0c0hwp";
}; };
cargoSha256 = "18d3b9g2jxkgscx9186v5301y4y01wd00kcs14617fgjnv0lyz1g"; cargoSha256 = "0ks25w0dncaiw3ma05r8jrng3cczancrynnpgdksbvgz49lg3wjw";
verifyCargoDeps = true; verifyCargoDeps = true;
postInstall = '' postInstall = ''
mkdir -p $out/share/navi/ mkdir -p $out/share/navi/
mv cheats $out/share/navi/
mv shell $out/share/navi/ mv shell $out/share/navi/
wrapProgram "$out/bin/navi" \ wrapProgram "$out/bin/navi" \
--suffix "PATH" : "${fzf}/bin" \ --suffix "PATH" : "${fzf}/bin"
--suffix "NAVI_PATH" : "$out/share/navi/cheats"
''; '';
nativeBuildInputs = [ makeWrapper ]; buildInputs = [ openssl ];
nativeBuildInputs = [ makeWrapper pkgconfig ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An interactive cheatsheet tool for the command-line"; description = "An interactive cheatsheet tool for the command-line";