5cc18c4781
Standard library now contains stdenv.lib.versions.majorMinor, which does the same.
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{ stdenv, fetchurl, substituteAll, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
|
|
, intltool, libxml2, xkeyboard_config, isocodes, itstool, wayland
|
|
, libseccomp, bubblewrap, gobjectIntrospection, gtk-doc, docbook_xsl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnome-desktop-${version}";
|
|
version = "3.28.2";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-desktop/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
sha256 = "0c439hhpfd9axmv4af6fzhibksh69pnn2nnbghbbqqbwy6zqfl30";
|
|
};
|
|
|
|
# TODO: remove with 3.30
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig which itstool intltool libxslt libxml2 gobjectIntrospection
|
|
gtk-doc docbook_xsl
|
|
];
|
|
buildInputs = [
|
|
libX11 bubblewrap xkeyboard_config isocodes wayland
|
|
gtk3 glib libseccomp
|
|
];
|
|
|
|
propagatedBuildInputs = [ gnome3.gsettings-desktop-schemas ];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./bubblewrap-paths.patch;
|
|
BUBBLEWRAP_BIN = "${bubblewrap}/bin/bwrap";
|
|
})
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-gtk-doc"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = "gnome-desktop";
|
|
attrPath = "gnome3.gnome-desktop";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library with common API for various GNOME modules";
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
|
platforms = platforms.linux;
|
|
maintainers = gnome3.maintainers;
|
|
};
|
|
}
|