about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex James <git@alextjam.es>2024-05-26 03:03:42 -0500
committerGitHub <noreply@github.com>2024-05-26 16:03:42 +0800
commit0be5a16bb37359e3e005319d4d7641f81b2d7b47 (patch)
tree942ff6e954e979b638883cecf7534ad4c0e17375
parentc54273a42eb8c60ad5a733f28dd2c2a6c6e05e0a (diff)
bento4: fix build on darwin (#314361)
CMakeLists.txt in v1.6.0-641 set `CMAKE_OSX_ARCHITECTURES`, which broke
evaluation on Darwin. Fix it by unsetting `CMAKE_OSX_ARCHITECTURES`.
-rw-r--r--pkgs/tools/video/bento4/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/video/bento4/default.nix b/pkgs/tools/video/bento4/default.nix
index 54e5a22cc67d5..12764ad92778e 100644
--- a/pkgs/tools/video/bento4/default.nix
+++ b/pkgs/tools/video/bento4/default.nix
@@ -18,7 +18,11 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake ];
 
-  cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
+  cmakeFlags = [
+    "-DBUILD_SHARED_LIBS=ON"
+  ] ++ lib.optionals stdenv.isDarwin [
+    "-DCMAKE_OSX_ARCHITECTURES="
+  ];
 
   installPhase = ''
     runHook preInstall