Merge pull request #30103 from dtzWill/fix/lsb-release-PATH

lsb-release: wrap to ensure needed utilities are available

authored by Orivej Desh and committed by GitHub a41342ba 5bd48158

+9 -2
+9 -2
pkgs/os-specific/linux/lsb-release/default.nix
··· 1 - { stdenv, fetchurl, perl, getopt }: 1 + { stdenv, fetchurl, perl, coreutils, getopt, makeWrapper }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "1.4"; ··· 16 16 17 17 installFlags = [ "prefix=$(out)" ]; 18 18 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 + ''; 20 27 21 28 meta = { 22 29 description = "Prints certain LSB (Linux Standard Base) and Distribution information";