|
|
|
@ -208,6 +208,10 @@ let
|
|
|
|
prev.unicorn.overrideAttrs (
|
|
|
|
prev.unicorn.overrideAttrs (
|
|
|
|
old:
|
|
|
|
old:
|
|
|
|
lib.optionalAttrs ((isBuildSource old)) {
|
|
|
|
lib.optionalAttrs ((isBuildSource old)) {
|
|
|
|
|
|
|
|
# On 32bit system failed to build: https://github.com/pwndbg/pwndbg/issues/2588#issuecomment-2659498870
|
|
|
|
|
|
|
|
# Since GCC-14 `-Wreturn-mismatch` is turned into an error by default.
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.is32bit "-Wno-return-mismatch";
|
|
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs =
|
|
|
|
nativeBuildInputs =
|
|
|
|
old.nativeBuildInputs
|
|
|
|
old.nativeBuildInputs
|
|
|
|
++ [
|
|
|
|
++ [
|
|
|
|
@ -219,9 +223,9 @@ let
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
substituteInPlace ./src/CMakeLists.txt \
|
|
|
|
substituteInPlace ./src/CMakeLists.txt \
|
|
|
|
--replace-fail 'set(CMAKE_C_COMPILER "/usr/bin/cc")' 'set(CMAKE_C_COMPILER "${stdenv.cc}/bin/cc")' || true
|
|
|
|
--replace-fail 'set(CMAKE_C_COMPILER "/usr/bin/cc")' 'set(CMAKE_C_COMPILER "${stdenv.cc}/bin/cc")' || true
|
|
|
|
'';
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) { };
|
|
|
|
) { };
|
|
|
|
|