From cfb8a6d6690f8cd3eeb7b7b62fba4972cad74d3c Mon Sep 17 00:00:00 2001 From: Linus Vettiger Date: Sat, 16 May 2026 17:53:12 +0200 Subject: [PATCH] degate: Fix darwin build --- pkgs/applications/science/electronics/degate/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/science/electronics/degate/default.nix b/pkgs/applications/science/electronics/degate/default.nix index 1d5c5d5b32c0..7f9e56ee9f68 100644 --- a/pkgs/applications/science/electronics/degate/default.nix +++ b/pkgs/applications/science/electronics/degate/default.nix @@ -34,6 +34,13 @@ stdenv.mkDerivation rec { includes = [ "tests/catch2/catch.hpp" ]; hash = "sha256-SbSA813QI8RRVy1lvAOGMGAC2KUQKjwYR2imqX40pvU="; }) + + (fetchpatch { + name = "memorymap-macos.patch"; + url = "https://github.com/DegateCommunity/Degate/commit/04685b088f485b3b73c55b7bfb989d2f0c88e4ca.patch"; + includes = [ "src/Core/Utils/MemoryMap.h" ]; + hash = "sha256-5UfVLc4OoMBaDa0qwOCRpd+dOtdDh4kxHNVfTA50lPg="; + }) ]; postPatch = ''