diff options
author | Johannes Frankenau <johannes@frankenau.net> | 2017-07-03 15:39:17 +0200 |
---|---|---|
committer | Johannes Frankenau <johannes@frankenau.net> | 2017-07-03 15:41:37 +0200 |
commit | 5dc2f6b3ad471b72bf122cd310eb5b6fea95f5ba (patch) | |
tree | db4b7af8e9f14fc9ab68b5ee6fb93e37c0fed846 /pkgs/applications/misc/noice | |
parent | 01c3847b9c656d3829dd947395aacd0f84178eb2 (diff) |
noice: init at 0.6
Diffstat (limited to 'pkgs/applications/misc/noice')
-rw-r--r-- | pkgs/applications/misc/noice/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/misc/noice/default.nix b/pkgs/applications/misc/noice/default.nix new file mode 100644 index 0000000000000..bcf2edd8f2f6a --- /dev/null +++ b/pkgs/applications/misc/noice/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchgit, ncurses, conf ? null }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "noice-${version}"; + version = "0.6"; + + src = fetchgit { + url = "git://git.2f30.org/noice.git"; + rev = "refs/tags/v${version}"; + sha256 = "03rwglcy47fh6rb630vws10m95bxpcfv47nxrlws2li2ljam8prw"; + }; + + 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 ]; + }; +} |