1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

lsb-release: wrap to ensure needed utilities are available

This commit is contained in:
Will Dietz 2017-10-04 17:35:45 -05:00
parent c42b878ed3
commit 78785a06f9

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";