summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-06-17 09:50:10 +0200
committermakefu <github@syntax-fehler.de>2020-06-17 09:50:10 +0200
commit7cdb5bd67057f944af6b9529cf1f73798036f674 (patch)
treea98d07e15b3fc65b6f9983793dc8fd1dfe02767b /makefu
parentd530d0132ad904d930457682ee98a1aee7d6791b (diff)
ma pkgs.navi: init
Diffstat (limited to 'makefu')
-rw-r--r--makefu/5pkgs/navi/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/makefu/5pkgs/navi/default.nix b/makefu/5pkgs/navi/default.nix
new file mode 100644
index 000000000..1e8274f80
--- /dev/null
+++ b/makefu/5pkgs/navi/default.nix
@@ -0,0 +1,37 @@
+# via https://git.ingolf-wagner.de/palo/nixos-config/src/master/pkgs/navi/default.nix
+
+{ rustPlatform, fetchFromGitHub, stdenv, fzf, makeWrapper, openssl, pkgconfig }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "navi";
+ version = "2.1.1";
+
+ src = fetchFromGitHub {
+ owner = "denisidoro";
+ repo = "navi";
+ rev = "v${version}";
+ #rev = "${version}";
+ sha256 = "1195f7c3ij2mkv0k1h9fwn6jkyjb01w0p6mj2xc39w5f6i0c0hwp";
+ };
+
+ cargoSha256 = "0ks25w0dncaiw3ma05r8jrng3cczancrynnpgdksbvgz49lg3wjw";
+
+ postInstall = ''
+ mkdir -p $out/share/navi/
+ mv shell $out/share/navi/
+
+ wrapProgram "$out/bin/navi" \
+ --suffix "PATH" : "${fzf}/bin"
+ '';
+ buildInputs = [ openssl ];
+ nativeBuildInputs = [ makeWrapper pkgconfig ];
+
+ meta = with stdenv.lib; {
+ description = "An interactive cheatsheet tool for the command-line";
+ homepage = "https://github.com/denisidoro/navi";
+ license = licenses.asl20;
+ platforms = platforms.unix;
+ maintainers = with maintainers; [ mrVanDalo ];
+ };
+}
+