32 lines
845 B
Nix
32 lines
845 B
Nix
{ stdenv, fetchFromGitHub, pkgconfig, ncurses, readline, conf ? null }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "nnn-${version}";
|
|
version = "2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jarun";
|
|
repo = "nnn";
|
|
rev = "v${version}";
|
|
sha256 = "1vkrhsdwgacln335rjywdf7nj7fg1x55szmm8xrvwda8y2qjqhc4";
|
|
};
|
|
|
|
configFile = optionalString (conf!=null) (builtins.toFile "nnn.h" conf);
|
|
preBuild = optionalString (conf!=null) "cp ${configFile} nnn.h";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ ncurses readline ];
|
|
|
|
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
|
|
|
meta = {
|
|
description = "Small ncurses-based file browser forked from noice";
|
|
homepage = https://github.com/jarun/nnn;
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
};
|
|
}
|