Merge pull request #126767 from musfay/bootiso-fix

This commit is contained in:
Sandro 2021-06-14 17:06:09 +02:00 committed by GitHub
commit e1a1d4399c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,8 @@
, makeWrapper
, bc
, jq
, coreutils
, util-linux
, wimlib
, file
, syslinux
@ -26,15 +28,12 @@ stdenvNoCC.mkDerivation rec {
strictDeps = true;
buildInputs = [ bash ];
nativeBuildInputs = [ makeWrapper ];
postPatch = ''
patchShebangs --host bootiso
'';
makeFlags = [ "prefix=${placeholder "out"}" ];
postInstall = ''
wrapProgram $out/bin/bootiso \
--prefix PATH : ${lib.makeBinPath [ bc jq wimlib file syslinux gnugrep busybox ]} \
--prefix PATH : ${lib.makeBinPath [ bc jq coreutils util-linux wimlib file syslinux gnugrep busybox ]} \
--prefix BOOTISO_SYSLINUX_LIB_ROOT : ${syslinux}/share/syslinux
'';