diff --git a/pkgs/by-name/im/imhex/package.nix b/pkgs/by-name/im/imhex/package.nix index 5fbc9e98ab53..1ee656cdc5c5 100644 --- a/pkgs/by-name/im/imhex/package.nix +++ b/pkgs/by-name/im/imhex/package.nix @@ -98,8 +98,11 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "USE_SYSTEM_LLVM" true) (lib.cmakeBool "USE_SYSTEM_NLOHMANN_JSON" true) (lib.cmakeBool "USE_SYSTEM_YARA" true) + (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.5") ]; + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; + # Comment out fixup_bundle in PostprocessBundle.cmake as we are not building a standalone application postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace cmake/modules/PostprocessBundle.cmake \ @@ -139,6 +142,7 @@ stdenv.mkDerivation (finalAttrs: { kashw2 cafkafk govanify + ryand56 ]; platforms = with lib.platforms; linux ++ darwin; };