22 lines
659 B
Nix
22 lines
659 B
Nix
{ stdenv, fetchurl, ncurses, lessSecure ? false }:
|
||
|
||
stdenv.mkDerivation rec {
|
||
name = "less-520";
|
||
|
||
src = fetchurl {
|
||
url = "http://www.greenwoodsoftware.com/less/${name}.tar.gz";
|
||
sha256 = "12wh0j07971j53v7irfcv0vkb7wpi7f83jll4mwjy92wc27fm2bv";
|
||
};
|
||
|
||
configureFlags = [ "--sysconfdir=/etc" ] # Look for ‘sysless’ in /etc.
|
||
++ stdenv.lib.optional lessSecure [ "--with-secure" ];
|
||
|
||
buildInputs = [ ncurses ];
|
||
|
||
meta = {
|
||
homepage = http://www.greenwoodsoftware.com/less/;
|
||
description = "A more advanced file pager than ‘more’";
|
||
platforms = stdenv.lib.platforms.unix;
|
||
maintainers = [ stdenv.lib.maintainers.eelco ];
|
||
};
|
||
}
|