diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-26 23:31:47 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-26 23:58:13 -0300 |
commit | 77f472a4cf6edee31175f6afe110a10b69a5b9d6 (patch) | |
tree | bb9a8fea57caf99bd86e35ab3f68965b8216b801 /pkgs/applications/file-managers/noice | |
parent | 39a9ea7f5e9a914a2e83f5805b87671c27fb5694 (diff) |
noice: move to applications/file-managers
Diffstat (limited to 'pkgs/applications/file-managers/noice')
-rw-r--r-- | pkgs/applications/file-managers/noice/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/file-managers/noice/default.nix b/pkgs/applications/file-managers/noice/default.nix new file mode 100644 index 0000000000000..e67346c517159 --- /dev/null +++ b/pkgs/applications/file-managers/noice/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchgit, ncurses, conf ? null }: + +with lib; + +stdenv.mkDerivation rec { + pname = "noice"; + version = "0.8"; + + src = fetchgit { + url = "git://git.2f30.org/noice.git"; + rev = "refs/tags/v${version}"; + sha256 = "0975j4m93s9a21pazwdzn4gqhkngwq7q6ghp0q8a75r6c4fb7aar"; + }; + + postPatch = '' + # Add support for ncurses-6.3. Can be dropped with 0.9 release. + # Fixed upstream at: https://git.2f30.org/noice/commit/53c35e6b340b7c135038e00057a198f03cb7d7cf.html + substituteInPlace noice.c --replace 'printw(str);' 'printw("%s", str);' + ''; + + configFile = optionalString (conf!=null) (builtins.toFile "config.def.h" conf); + preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h"; + + buildInputs = [ ncurses ]; + + buildFlags = [ "LDLIBS=-lncurses" ]; + + installFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; + + meta = { + description = "Small ncurses-based file browser"; + homepage = "https://git.2f30.org/noice/"; + license = licenses.bsd2; + platforms = platforms.all; + maintainers = with maintainers; [ jfrankenau ]; + }; +} |