tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
lsb-release: init at 1.4
Ricardo Ardissone
9 years ago
9f4ac8d3
551296a1
+29
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
lsb-release
default.nix
top-level
all-packages.nix
+27
pkgs/os-specific/linux/lsb-release/default.nix
···
1
1
+
{ stdenv, fetchurl, perl, getopt }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
version = "1.4";
5
5
+
name = "lsb-release-${version}";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "mirror://sourceforge/lsb/${name}.tar.gz";
9
9
+
sha256 = "0wkiy7ymfi3fh2an2g30raw6yxh6rzf6nz2v90fplbnnz2414clr";
10
10
+
};
11
11
+
12
12
+
preConfigure = ''
13
13
+
substituteInPlace help2man \
14
14
+
--replace /usr/bin/perl ${perl}/bin/perl
15
15
+
'';
16
16
+
17
17
+
installFlags = [ "prefix=$(out)" ];
18
18
+
19
19
+
buildInputs = [ perl getopt ];
20
20
+
21
21
+
meta = {
22
22
+
description = "Prints certain LSB (Linux Standard Base) and Distribution information";
23
23
+
homepage = http://www.linuxfoundation.org/collaborate/workgroups/lsb;
24
24
+
license = [ stdenv.lib.licenses.gpl2Plus stdenv.lib.licenses.gpl3Plus ];
25
25
+
platforms = stdenv.lib.platforms.linux;
26
26
+
};
27
27
+
}
+2
pkgs/top-level/all-packages.nix
···
2249
2249
2250
2250
lrzip = callPackage ../tools/compression/lrzip { };
2251
2251
2252
2252
+
lsb-release = callPackage ../os-specific/linux/lsb-release { };
2253
2253
+
2252
2254
# lsh installs `bin/nettle-lfib-stream' and so does Nettle. Give the
2253
2255
# former a lower priority than Nettle.
2254
2256
lsh = lowPrio (callPackage ../tools/networking/lsh { });