From 08790dff7907b73811efbdc3eef8c4662b8c9b68 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 4 Nov 2024 09:46:31 +0000 Subject: [PATCH] xorg.libAppleWM: constrain to darwin targets Without the change the build fails on `x86_64-linux` as https://hydra.nixos.org/build/276690936: make[2]: Entering directory '/build/libapplewm-be972ebc3a97292e7d2b2350eff55ae12df99a42/src' CC applewm.lo gcc: error: unrecognized command-line option '-iframeworkwithsysroot' ZHF: #352882 --- pkgs/servers/x11/xorg/overrides.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 7ed53ee22212..fcc9937b63b8 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -171,6 +171,9 @@ self: super: libAppleWM = super.libAppleWM.overrideAttrs (attrs: { nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; buildInputs = attrs.buildInputs ++ [ xorg.utilmacros ]; + meta = attrs.meta // { + platforms = lib.platforms.darwin; + }; }); libXau = super.libXau.overrideAttrs (attrs: {