From 9f4ac8d3f8e964561be657d276d331de6fd6a638 Mon Sep 17 00:00:00 2001 From: Ricardo Ardissone Date: Fri, 22 Apr 2016 14:03:27 -0300 Subject: [PATCH] lsb-release: init at 1.4 --- .../os-specific/linux/lsb-release/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/os-specific/linux/lsb-release/default.nix diff --git a/pkgs/os-specific/linux/lsb-release/default.nix b/pkgs/os-specific/linux/lsb-release/default.nix new file mode 100644 index 000000000000..9715f77f9e4e --- /dev/null +++ b/pkgs/os-specific/linux/lsb-release/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f8a5bdb8605f..d31afaa46be7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2249,6 +2249,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 { });