dexed: Fix darwin build

This commit is contained in:
Linus Vettiger
2026-05-16 19:17:18 +02:00
parent 0acc4b806b
commit e7a73d94b2
+10
View File
@@ -5,6 +5,7 @@
gitUpdater,
cmake,
pkg-config,
fetchpatch,
libx11,
libxrandr,
libxinerama,
@@ -27,6 +28,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-9EbaME3kw2ptCWpaV9CnM0j5HOof264s5iFoOTcjwNg=";
};
patches = [
(fetchpatch {
name = "fix-min-macos-version";
# https://github.com/asb2m10/dexed/pull/523
url = "https://github.com/asb2m10/dexed/commit/e41f1b8147bb6a5b7e9330a7ec6a598a1e74a524.patch";
sha256 = "sha256-8ZrAirXUACk8BJUPfA/LQORCUOqjSTsKoS9HFyrkvV8=";
})
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE INTERNAL "")' '# Not forcing output archs'