imhex: fix build on darwin

This commit is contained in:
Ryan Omasta
2026-07-11 14:24:01 -06:00
parent 9ccbbb9c9a
commit 1f6f094ec0
+11 -2
View File
@@ -23,6 +23,7 @@
nix-update-script,
autoPatchelfHook,
makeWrapper,
llvmPackages,
}:
let
@@ -61,7 +62,9 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
makeWrapper
]
++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook
# TODO: Remove once #536365 reaches this branch
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
buildInputs = [
capstone
@@ -103,7 +106,13 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "CMAKE_INSTALL_NAME_DIR" "@executable_path/../Frameworks")
];
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
env = {
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
# Comment out fixup_bundle in PostprocessBundle.cmake as we are not building a standalone application
postPatch = ''