git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #30103 from dtzWill/fix/lsb-release-PATH

lsb-release: wrap to ensure needed utilities are available

commita41342ba584db4765807492ee4c8bb2c8aa2dcd0 authorOrivej Desh <orivej@gmx.fr> dateThu 2 Nov 2017, 21:22 (9 years ago) parent5bd481578785a0
1 file changed+9−2
pkgs/os-specific/linux/lsb-release/default.nix+9−2
pkgs/os-specific/linux/lsb-release/default.nix+9−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, perl, getopt }:
1+{ stdenv, fetchurl, perl, coreutils, getopt, makeWrapper }:
22
33stdenv.mkDerivation rec {
44 version = "1.4";
@@ -16,7 +16,14 @@ stdenv.mkDerivation rec {
1616
1717 installFlags = [ "prefix=$(out)" ];
1818
19− buildInputs = [ perl getopt ];
19+ nativeBuildInputs = [ makeWrapper perl ];
20+
21+ buildInputs = [ coreutils getopt ];
22+
23+ # Ensure utilities used are available
24+ preFixup = ''
25+ wrapProgram $out/bin/lsb_release --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils getopt ]}
26+ '';
2027
2128 meta = {
2229 description = "Prints certain LSB (Linux Standard Base) and Distribution information";