bootil: fix build with gcc 14 (#388680)

authored by

Sandro and committed by
GitHub
df66acc0 5e27ae5d

+9 -2
+9 -2
pkgs/by-name/bo/bootil/package.nix
··· 3 3 stdenv, 4 4 fetchFromGitHub, 5 5 premake4, 6 + zlib, 6 7 }: 7 8 8 9 stdenv.mkDerivation { ··· 16 17 sha256 = "1njdj6nvmwf7j2fwqbyvd1cf5l52797vk2wnsliylqdzqcjmfpij"; 17 18 }; 18 19 20 + enableParallelBuilding = true; 21 + 19 22 # Avoid guessing where files end up. Just use current directory. 20 23 postPatch = '' 21 24 substituteInPlace projects/premake4.lua \ 22 - --replace 'location ( os.get() .. "/" .. _ACTION )' 'location ( ".." )' 25 + --replace-fail 'location ( os.get() .. "/" .. _ACTION )' 'location ( ".." )' 23 26 substituteInPlace projects/bootil.lua \ 24 - --replace 'targetdir ( "../lib/" .. os.get() .. "/" .. _ACTION )' 'targetdir ( ".." )' 27 + --replace-fail 'targetdir ( "../lib/" .. os.get() .. "/" .. _ACTION )' 'targetdir ( ".." )' 28 + 29 + rm src/3rdParty/zlib -rf 30 + mkdir src/3rdParty/zlib 31 + cp -r ${zlib.dev}/include/z{conf,lib}.h src/3rdParty/zlib 25 32 ''; 26 33 27 34 nativeBuildInputs = [ premake4 ];