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

gnome-desktop: add darwin support
This commit is contained in:
Jan Tojnar 2022-08-02 20:23:30 +02:00 committed by GitHub
commit f310f24f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-2lBBC48Z/X53WwDR/g26Z/xeEVHe0pkVjcJd2tw/qKk=";
};
patches = [
patches = lib.optionals stdenv.isLinux [
(substituteAll {
src = ./bubblewrap-paths.patch;
bubblewrap_bin = "${bubblewrap}/bin/bwrap";
@ -58,14 +58,15 @@ stdenv.mkDerivation rec {
];
buildInputs = [
bubblewrap
xkeyboard_config
libxkbcommon # for xkbregistry
isocodes
wayland
gtk3
gtk4
glib
] ++ lib.optionals stdenv.isLinux [
bubblewrap
wayland
libseccomp
systemd
];
@ -79,6 +80,9 @@ stdenv.mkDerivation rec {
"-Ddesktop_docs=false"
"-Ddate_in_gnome_version=false"
"-Dgnome_distributor=NixOS"
] ++ lib.optionals (!stdenv.isLinux) [
"-Dsystemd=disabled"
"-Dudev=disabled"
];
separateDebugInfo = stdenv.isLinux;
@ -93,7 +97,7 @@ stdenv.mkDerivation rec {
description = "Library with common API for various GNOME modules";
homepage = "https://gitlab.gnome.org/GNOME/gnome-desktop";
license = with licenses; [ gpl2Plus lgpl2Plus ];
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
}