diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/misc/noice/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/misc/noice/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/misc/noice/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/misc/noice/default.nix new file mode 100644 index 000000000000..2be5a4ab83b9 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/misc/noice/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchgit, ncurses, conf ? null }: + +with stdenv.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"; + }; + + 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 ]; + }; +} |