2014-01-09 13:15:18 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, gobjectIntrospection
|
2013-02-21 20:58:09 +00:00
|
|
|
# just for passthru
|
|
|
|
, gtk3, gsettings_desktop_schemas }:
|
2012-07-10 17:03:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2014-01-09 13:15:18 +00:00
|
|
|
versionMajor = "3.10";
|
2013-02-21 19:42:28 +00:00
|
|
|
versionMinor = "1";
|
2012-07-10 17:03:13 +01:00
|
|
|
moduleName = "gsettings-desktop-schemas";
|
|
|
|
|
|
|
|
name = "${moduleName}-${versionMajor}.${versionMinor}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${moduleName}/${versionMajor}/${name}.tar.xz";
|
2014-01-09 13:15:18 +00:00
|
|
|
sha256 = "04b8wy10l6pzs5928gnzaia73dz5fjlcdy39xi3mf50ajv27h8s5";
|
2012-07-10 17:03:13 +01:00
|
|
|
};
|
|
|
|
|
2014-01-09 13:15:18 +00:00
|
|
|
buildInputs = [ glib gobjectIntrospection ];
|
2012-07-10 17:03:13 +01:00
|
|
|
|
2013-02-21 19:42:28 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2013-02-21 20:58:09 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
doCompileSchemas = ''
|
|
|
|
for pkg in "${gsettings_desktop_schemas}" "${gtk3}"; do
|
|
|
|
cp -s $pkg/share/glib-2.0/schemas/*.gschema.xml $out/share/glib-2.0/schemas/
|
|
|
|
done
|
|
|
|
${glib}/bin/glib-compile-schemas $out/share/glib-2.0/schemas/
|
|
|
|
'';
|
|
|
|
};
|
2012-07-10 17:03:13 +01:00
|
|
|
}
|