gnome3: factor out doCompileSchemas
This commit is contained in:
parent
2c700f3b4a
commit
e817e8fcdb
@ -43,13 +43,7 @@ stdenv.mkDerivation rec {
|
|||||||
# by `g_file_info_get_content_type ()'.
|
# by `g_file_info_get_content_type ()'.
|
||||||
wrapProgram "$out/bin/evince" \
|
wrapProgram "$out/bin/evince" \
|
||||||
--prefix XDG_DATA_DIRS : "${shared_mime_info}/share:$out/share"
|
--prefix XDG_DATA_DIRS : "${shared_mime_info}/share:$out/share"
|
||||||
|
'' + gsettings_desktop_schemas.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/
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = false; # would need pythonPackages.dogTail, which is missing
|
doCheck = false; # would need pythonPackages.dogTail, which is missing
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, glib }:
|
{ stdenv, fetchurl, pkgconfig, intltool, glib
|
||||||
|
# just for passthru
|
||||||
|
, gtk3, gsettings_desktop_schemas }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -16,4 +18,13 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ glib ];
|
buildInputs = [ glib ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig intltool ];
|
nativeBuildInputs = [ pkgconfig intltool ];
|
||||||
|
|
||||||
|
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/
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user