Merge pull request #184332 from wegank/gnome-desktop-darwin

gnome-desktop: add darwin support

authored by Jan Tojnar and committed by GitHub f310f24f c3aada9d

+8 -4
+8 -4
pkgs/development/libraries/gnome-desktop/default.nix
··· 36 36 sha256 = "sha256-2lBBC48Z/X53WwDR/g26Z/xeEVHe0pkVjcJd2tw/qKk="; 37 37 }; 38 38 39 - patches = [ 39 + patches = lib.optionals stdenv.isLinux [ 40 40 (substituteAll { 41 41 src = ./bubblewrap-paths.patch; 42 42 bubblewrap_bin = "${bubblewrap}/bin/bwrap"; ··· 58 58 ]; 59 59 60 60 buildInputs = [ 61 - bubblewrap 62 61 xkeyboard_config 63 62 libxkbcommon # for xkbregistry 64 63 isocodes 65 - wayland 66 64 gtk3 67 65 gtk4 68 66 glib 67 + ] ++ lib.optionals stdenv.isLinux [ 68 + bubblewrap 69 + wayland 69 70 libseccomp 70 71 systemd 71 72 ]; ··· 79 80 "-Ddesktop_docs=false" 80 81 "-Ddate_in_gnome_version=false" 81 82 "-Dgnome_distributor=NixOS" 83 + ] ++ lib.optionals (!stdenv.isLinux) [ 84 + "-Dsystemd=disabled" 85 + "-Dudev=disabled" 82 86 ]; 83 87 84 88 separateDebugInfo = stdenv.isLinux; ··· 93 97 description = "Library with common API for various GNOME modules"; 94 98 homepage = "https://gitlab.gnome.org/GNOME/gnome-desktop"; 95 99 license = with licenses; [ gpl2Plus lgpl2Plus ]; 96 - platforms = platforms.linux; 100 + platforms = platforms.unix; 97 101 maintainers = teams.gnome.members; 98 102 }; 99 103 }