nixpkgs/pkgs/desktops/gnome-3/core/gnome-desktop/default.nix
Tor Hedin Brønner d5ba27a700
gnome3.gnome-desktop: fix path substitution
`substituteAll` intentionally doesn't work with all caps:
https://github.com/NixOS/nixpkgs/issues/28086
2018-11-30 21:35:26 +01:00

54 lines
1.4 KiB
Nix

{ stdenv, fetchurl, substituteAll, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
, gettext, libxml2, xkeyboard_config, isocodes, itstool, wayland
, libseccomp, bubblewrap, gobjectIntrospection, gtk-doc, docbook_xsl }:
stdenv.mkDerivation rec {
name = "gnome-desktop-${version}";
version = "3.30.2";
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/gnome-desktop/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0k6iccfj9naw42dl2mgljfvk12dmvg06plg86qd81nksrf9ycxal";
};
enableParallelBuilding = true;
nativeBuildInputs = [
pkgconfig which itstool gettext 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;
};
}