From 012192234e1b959f383615606da42bd9fd046832 Mon Sep 17 00:00:00 2001 From: Ryan Omasta Date: Tue, 7 Oct 2025 02:25:51 -0600 Subject: [PATCH 1/2] imhex: fix build with cmake 4 --- pkgs/by-name/im/imhex/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/im/imhex/package.nix b/pkgs/by-name/im/imhex/package.nix index 5fbc9e98ab53..a6e6f1db7fdc 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 \ From c5a28a89cd7771dbde4d55edbc64536c907a05e1 Mon Sep 17 00:00:00 2001 From: Ryan Omasta Date: Tue, 7 Oct 2025 03:00:30 -0600 Subject: [PATCH 2/2] imhex: add ryand56 to maintainers --- pkgs/by-name/im/imhex/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/im/imhex/package.nix b/pkgs/by-name/im/imhex/package.nix index a6e6f1db7fdc..1ee656cdc5c5 100644 --- a/pkgs/by-name/im/imhex/package.nix +++ b/pkgs/by-name/im/imhex/package.nix @@ -142,6 +142,7 @@ stdenv.mkDerivation (finalAttrs: { kashw2 cafkafk govanify + ryand56 ]; platforms = with lib.platforms; linux ++ darwin; };