mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
0f9f74f1d5
This is a fix for the current package source file http://www.greenwoodsoftware.com/less/less-483.tar.gz not being available anymore. We bump the less version back to 481, and adjust the source package hash accordingly. This is a (slight) downgrade from 483 as opposed to an upgrade since a) 481 is the current Recommended version by http://www.greenwoodsoftware.com/less/download.html b) Upstream is unreliable about keeping experimental versions around.
22 lines
659 B
Nix
22 lines
659 B
Nix
{ stdenv, fetchurl, ncurses, lessSecure ? false }:
|
||
|
||
stdenv.mkDerivation rec {
|
||
name = "less-481";
|
||
|
||
src = fetchurl {
|
||
url = "http://www.greenwoodsoftware.com/less/${name}.tar.gz";
|
||
sha256 = "19fxj0h10y5bhr3a1xa7kqvnwl44db3sdypz8jxl1q79yln8z8rz";
|
||
};
|
||
|
||
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 ];
|
||
};
|
||
}
|