commit
9171992330
|
@ -7,13 +7,13 @@ assert withNerdIcons -> withIcons == false;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nnn";
|
pname = "nnn";
|
||||||
version = "3.5";
|
version = "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1fa7cmwrzn6kx87kms8i98p9azdlwyh2gnif29l340syl9hkr5qy";
|
sha256 = "1hwv7ncp8pmzdir30877ni4qlmczmb3yjdkbfd1pssr08y1srsc7";
|
||||||
};
|
};
|
||||||
|
|
||||||
configFile = lib.optionalString (conf != null) (builtins.toFile "nnn.h" conf);
|
configFile = lib.optionalString (conf != null) (builtins.toFile "nnn.h" conf);
|
||||||
|
@ -22,10 +22,8 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ readline ncurses ];
|
buildInputs = [ readline ncurses ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [ "PREFIX=$(out)" ]
|
||||||
"DESTDIR=${placeholder "out"}"
|
++ lib.optional withIcons [ "O_ICONS=1" ]
|
||||||
"PREFIX="
|
|
||||||
] ++ lib.optional withIcons [ "O_ICONS=1" ]
|
|
||||||
++ lib.optional withNerdIcons [ "O_NERD=1" ];
|
++ lib.optional withNerdIcons [ "O_NERD=1" ];
|
||||||
|
|
||||||
# shell completions
|
# shell completions
|
||||||
|
@ -38,6 +36,7 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Small ncurses-based file browser forked from noice";
|
description = "Small ncurses-based file browser forked from noice";
|
||||||
homepage = "https://github.com/jarun/nnn";
|
homepage = "https://github.com/jarun/nnn";
|
||||||
|
changelog = "https://github.com/jarun/nnn/blob/v${version}/CHANGELOG";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ jfrankenau Br1ght0ne ];
|
maintainers = with maintainers; [ jfrankenau Br1ght0ne ];
|
||||||
|
|
Loading…
Reference in New Issue