wimlib: Fix build on darwin.
Wimlib works just fine on darwin, but two adjustments need to be made: - Tests need to be disabled, as they rely on glibc-isms (such as lgetattr). - cdrkit and syslinux dependencies are dropped, as those binaries are linux-only.
This commit is contained in:
parent
e56a8b16eb
commit
f5b1bd166a
1 changed files with 3 additions and 3 deletions
|
@ -19,20 +19,20 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-MvzJ6bFEt8sdtMhuEEyngoPNwiXhP+grJzZgWGrv4yM=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
preBuild = lib.optionalString (!stdenv.isDarwin) ''
|
||||
substituteInPlace programs/mkwinpeimg.in \
|
||||
--replace '/usr/lib/syslinux' "${syslinux}/share/syslinux"
|
||||
'';
|
||||
|
||||
postInstall = let
|
||||
path = lib.makeBinPath [ cabextract cdrkit mtools ntfs3g syslinux ];
|
||||
path = lib.makeBinPath ([ cabextract mtools ntfs3g ] ++ lib.optionals (!stdenv.isDarwin) [ cdrkit syslinux ]);
|
||||
in ''
|
||||
for prog in $out/bin/*; do
|
||||
wrapProgram $prog --prefix PATH : ${path}
|
||||
done
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
doCheck = (!stdenv.isDarwin);
|
||||
|
||||
preCheck = ''
|
||||
patchShebangs tests
|
||||
|
|
Loading…
Reference in a new issue