git.iko.soy/typeable/nixpkgs
on master help sign in
lsb-release: wrap to ensure needed utilities are available
commit78785a06f99d20ae86479c4f6896463f812e2760 authorWill Dietz <w@wdtz.org> dateWed 4 Oct 2017, 17:35 (9 years ago) parentc42b878
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";