gobject-introspection: auto-move *.gir into $dev

This commit is contained in:
Vladimír Čunát 2015-10-28 11:59:42 +01:00
parent 55b7d3a181
commit dd6912a95e
2 changed files with 12 additions and 4 deletions

View file

@ -15,10 +15,13 @@ stdenv.mkDerivation rec {
url = "mirror://gnome/sources/gobject-introspection/${ver_maj}/${name}.tar.xz";
sha256 = "6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233";
};
patches = [ ./absolute_shlib_path.patch ];
outputs = [ "dev" "out" "doc" ];
outputs = [ "dev" "out" ];
outputBin = "dev";
outputMan = "dev"; # tiny pages
buildInputs = [ flex bison pkgconfig python ]
buildInputs = [ flex bison pkgconfig python setupHook/*move .gir*/ ]
++ libintlOrEmpty
++ stdenv.lib.optional stdenv.isDarwin otool;
propagatedBuildInputs = [ libffi glib ];
@ -37,8 +40,6 @@ stdenv.mkDerivation rec {
setupHook = ./setup-hook.sh;
patches = [ ./absolute_shlib_path.patch ];
meta = with stdenv.lib; {
description = "A middleware layer between C libraries and language bindings";
homepage = http://live.gnome.org/GObjectIntrospection;

View file

@ -12,3 +12,10 @@ make_gobject_introspection_find_gir_files() {
}
envHooks+=(make_gobject_introspection_find_gir_files)
_multioutMoveGlibGir() {
_moveToOutput share/gir-1.0 "${!outputDev}"
}
preFixupHooks+=(_multioutMoveGlibGir)