nixpkgs-suyu/pkgs/desktops/gnome-3/core/gsettings-desktop-schemas/default.nix
Jan Tojnar 5cc18c4781
gnome3: remove versionBranch attribute
Standard library now contains stdenv.lib.versions.majorMinor,
which does the same.
2018-10-05 02:17:19 +02:00

36 lines
1,020 B
Nix

{ stdenv, fetchurl, pkgconfig, intltool, glib, gobjectIntrospection
# just for passthru
, gnome3 }:
stdenv.mkDerivation rec {
name = "gsettings-desktop-schemas-${version}";
version = "3.28.0";
src = fetchurl {
url = "mirror://gnome/sources/gsettings-desktop-schemas/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0rwidacwrxlc54x90h9g3wx2zlisc4vm49vmxi15azmpj1vwvd2c";
};
passthru = {
updateScript = gnome3.updateScript { packageName = "gsettings-desktop-schemas"; };
};
preInstall = ''
mkdir -p $out/share/gsettings-schemas/${name}/glib-2.0/schemas
cat - > $out/share/gsettings-schemas/${name}/glib-2.0/schemas/remove-backgrounds.gschema.override <<- EOF
[org.gnome.desktop.background]
picture-uri='''
[org.gnome.desktop.screensaver]
picture-uri='''
EOF
'';
buildInputs = [ glib gobjectIntrospection ];
nativeBuildInputs = [ pkgconfig intltool ];
meta = with stdenv.lib; {
maintainers = gnome3.maintainers;
};
}