From bfa517208efc8cc7a2034f6ed136a88680ee7d66 Mon Sep 17 00:00:00 2001 From: "David E. C. Kopczynski" Date: Fri, 15 Nov 2024 04:37:50 +0100 Subject: [PATCH 1/3] maintainers: add David-Kopczynski --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d975ebfc7ea53..b42fb30589cc4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5015,6 +5015,12 @@ githubId = 118536343; name = "David Hamelin"; }; + David-Kopczynski = { + name = "David Elias Chris Kopczynski"; + email = "mail@davidkopczynski.com"; + github = "David-Kopczynski"; + githubId = 53194670; + }; david-r-cox = { email = "david@integrated-reasoning.com"; github = "david-r-cox"; From f640d0570df9caca074823baef64f5be8fa6a62c Mon Sep 17 00:00:00 2001 From: "David E. C. Kopczynski" Date: Fri, 15 Nov 2024 04:42:16 +0100 Subject: [PATCH 2/3] maintainers: add Jojo4GH --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b42fb30589cc4..421784775bc12 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10708,6 +10708,11 @@ name = "Joonas Rautiola"; keys = [ { fingerprint = "87EC DD30 6614 E510 5299 F0D4 090E B48A 4669 AA54"; } ]; }; + Jojo4GH = { + name = "Jonas Broeckmann"; + github = "Jojo4GH"; + githubId = 36777568; + }; jojosch = { name = "Johannes Schleifenbaum"; email = "johannes@js-webcoding.de"; From b9ad375933e3e523f0a9dd4f1f51e846014bab10 Mon Sep 17 00:00:00 2001 From: "David E. C. Kopczynski" Date: Fri, 15 Nov 2024 05:06:12 +0100 Subject: [PATCH 3/3] nav: init at 1.2.1 --- pkgs/by-name/na/nav/package.nix | 62 +++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 pkgs/by-name/na/nav/package.nix diff --git a/pkgs/by-name/na/nav/package.nix b/pkgs/by-name/na/nav/package.nix new file mode 100644 index 0000000000000..f5aeaa069db49 --- /dev/null +++ b/pkgs/by-name/na/nav/package.nix @@ -0,0 +1,62 @@ +{ + stdenv, + lib, + fetchzip, + nix-update-script, + autoPatchelfHook, + libxcrypt-legacy, +}: + +let + system = stdenv.hostPlatform.parsed.cpu.name; + platform = "${system}-unknown-linux-gnu"; +in +stdenv.mkDerivation rec { + pname = "nav"; + version = "1.2.1"; + + src = fetchzip { + url = "https://github.com/Jojo4GH/nav/releases/download/v${version}/nav-${platform}.tar.gz"; + sha256 = + { + x86_64-linux = "sha256-ihn5wlagmujHlSfJpgojQNqa4NjLF1wk2pt8wHi60DY="; + aarch64-linux = "sha256-l3rKu3OU/TUUjmx3p06k9V5eN3ZDNcxbxObLqVQ2B7U="; + } + .${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); + }; + + nativeBuildInputs = [ autoPatchelfHook ]; + buildInputs = [ + stdenv.cc.cc.lib + libxcrypt-legacy + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + cp nav $out/bin + + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Interactive and stylish replacement for ls & cd"; + longDescription = '' + To make use of nav, add the following lines to your configuration: + `programs.bash.shellInit = "eval \"$(nav --init bash)\"";` and + `programs.zsh.shellInit = "eval \"$(nav --init zsh)\"";` + ''; + homepage = "https://github.com/Jojo4GH/nav"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + David-Kopczynski + Jojo4GH + ]; + platforms = lib.platforms.linux; + sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; + mainProgram = "nav"; + }; +}