54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl, substituteAll, pkg-config, libxslt, ninja, gnome3, gtk3, glib
|
|
, gettext, libxml2, xkeyboard_config, isocodes, meson, wayland
|
|
, libseccomp, systemd, bubblewrap, gobject-introspection, gtk-doc, docbook_xsl, gsettings-desktop-schemas }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-desktop";
|
|
version = "3.38.2";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-desktop/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1m7iww1zk845szs9s3zc8a1s1wpd6kizndhq7gqy3575c0xgr2w9";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config meson ninja gettext libxslt libxml2 gobject-introspection
|
|
gtk-doc docbook_xsl glib
|
|
];
|
|
buildInputs = [
|
|
bubblewrap xkeyboard_config isocodes wayland
|
|
gtk3 glib libseccomp systemd
|
|
];
|
|
|
|
propagatedBuildInputs = [ gsettings-desktop-schemas ];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./bubblewrap-paths.patch;
|
|
bubblewrap_bin = "${bubblewrap}/bin/bwrap";
|
|
inherit (builtins) storeDir;
|
|
})
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dgtk_doc=true"
|
|
"-Ddesktop_docs=false"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = "gnome-desktop";
|
|
attrPath = "gnome3.gnome-desktop";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Library with common API for various GNOME modules";
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
|
platforms = platforms.linux;
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
}
|