nixpkgs/pkgs/applications/misc/nnn/default.nix
R. RyanTM 1472076176 nnn: 1.7 -> 1.8 (#40083)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/nnn/versions.

These checks were done:

- built on NixOS
- ran ‘/nix/store/ry70cgfhdagmk70n6wn6968mqg8h3js8-nnn-1.8/bin/nlay -h’ got 0 exit code
- ran ‘/nix/store/ry70cgfhdagmk70n6wn6968mqg8h3js8-nnn-1.8/bin/nlay --help’ got 0 exit code
- ran ‘/nix/store/ry70cgfhdagmk70n6wn6968mqg8h3js8-nnn-1.8/bin/nlay help’ got 0 exit code
- found 1.8 with grep in /nix/store/ry70cgfhdagmk70n6wn6968mqg8h3js8-nnn-1.8
- directory tree listing: https://gist.github.com/261e9182ffd2085e4d82ca4daefdcee6
2018-05-12 11:17:32 +02:00

31 lines
845 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, ncurses, readline, conf ? null }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "nnn-${version}";
version = "1.8";
src = fetchFromGitHub {
owner = "jarun";
repo = "nnn";
rev = "v${version}";
sha256 = "0sd8djig56163k0b0y4a7kg3malxlg08gayjw4zmvqaihvbbkc6v";
};
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 ];
};
}