1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/applications/misc/noice/default.nix

32 lines
804 B
Nix
Raw Normal View History

2017-07-03 14:39:17 +01:00
{ stdenv, fetchgit, ncurses, conf ? null }:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "noice";
2019-09-09 17:42:52 +01:00
version = "0.8";
2017-07-03 14:39:17 +01:00
src = fetchgit {
url = "git://git.2f30.org/noice.git";
rev = "refs/tags/v${version}";
2019-09-09 17:42:52 +01:00
sha256 = "0975j4m93s9a21pazwdzn4gqhkngwq7q6ghp0q8a75r6c4fb7aar";
2017-07-03 14:39:17 +01:00
};
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 ];
};
}