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

lsb-release: wrap to ensure needed utilities are available
This commit is contained in:
Orivej Desh 2017-11-02 21:22:33 +00:00 committed by GitHub
commit a41342ba58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, getopt }:
{ stdenv, fetchurl, perl, coreutils, getopt, makeWrapper }:
stdenv.mkDerivation rec {
version = "1.4";
@ -16,7 +16,14 @@ stdenv.mkDerivation rec {
installFlags = [ "prefix=$(out)" ];
buildInputs = [ perl getopt ];
nativeBuildInputs = [ makeWrapper perl ];
buildInputs = [ coreutils getopt ];
# Ensure utilities used are available
preFixup = ''
wrapProgram $out/bin/lsb_release --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils getopt ]}
'';
meta = {
description = "Prints certain LSB (Linux Standard Base) and Distribution information";