2021-01-15 06:42:41 +01:00
|
|
|
{ lib, stdenv, fetchgit, ncurses, conf ? null }:
|
2017-07-03 15:39:17 +02:00
|
|
|
|
2021-01-15 06:42:41 +01:00
|
|
|
with lib;
|
2017-07-03 15:39:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "noice";
|
2019-09-09 18:42:52 +02:00
|
|
|
version = "0.8";
|
2017-07-03 15:39:17 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.2f30.org/noice.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
2019-09-09 18:42:52 +02:00
|
|
|
sha256 = "0975j4m93s9a21pazwdzn4gqhkngwq7q6ghp0q8a75r6c4fb7aar";
|
2017-07-03 15:39:17 +02: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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://git.2f30.org/noice/";
|
2017-07-03 15:39:17 +02:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|