Merge pull request #14901 from rardiol/lsb_release

lsb-release: init at 1.4
This commit is contained in:
Joachim Fasting 2016-04-24 00:28:23 +02:00
commit 4a9ccee78f
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchurl, perl, getopt }:
stdenv.mkDerivation rec {
version = "1.4";
name = "lsb-release-${version}";
src = fetchurl {
url = "mirror://sourceforge/lsb/${name}.tar.gz";
sha256 = "0wkiy7ymfi3fh2an2g30raw6yxh6rzf6nz2v90fplbnnz2414clr";
};
preConfigure = ''
substituteInPlace help2man \
--replace /usr/bin/perl ${perl}/bin/perl
'';
installFlags = [ "prefix=$(out)" ];
buildInputs = [ perl getopt ];
meta = {
description = "Prints certain LSB (Linux Standard Base) and Distribution information";
homepage = http://www.linuxfoundation.org/collaborate/workgroups/lsb;
license = [ stdenv.lib.licenses.gpl2Plus stdenv.lib.licenses.gpl3Plus ];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -2273,6 +2273,8 @@ in
lrzip = callPackage ../tools/compression/lrzip { };
lsb-release = callPackage ../os-specific/linux/lsb-release { };
# lsh installs `bin/nettle-lfib-stream' and so does Nettle. Give the
# former a lower priority than Nettle.
lsh = lowPrio (callPackage ../tools/networking/lsh { });