gobject-introspection: auto-move *.gir into $dev
This commit is contained in:
parent
55b7d3a181
commit
dd6912a95e
@ -15,10 +15,13 @@ stdenv.mkDerivation rec {
|
|||||||
url = "mirror://gnome/sources/gobject-introspection/${ver_maj}/${name}.tar.xz";
|
url = "mirror://gnome/sources/gobject-introspection/${ver_maj}/${name}.tar.xz";
|
||||||
sha256 = "6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233";
|
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
|
++ libintlOrEmpty
|
||||||
++ stdenv.lib.optional stdenv.isDarwin otool;
|
++ stdenv.lib.optional stdenv.isDarwin otool;
|
||||||
propagatedBuildInputs = [ libffi glib ];
|
propagatedBuildInputs = [ libffi glib ];
|
||||||
@ -37,8 +40,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
patches = [ ./absolute_shlib_path.patch ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A middleware layer between C libraries and language bindings";
|
description = "A middleware layer between C libraries and language bindings";
|
||||||
homepage = http://live.gnome.org/GObjectIntrospection;
|
homepage = http://live.gnome.org/GObjectIntrospection;
|
||||||
|
@ -12,3 +12,10 @@ make_gobject_introspection_find_gir_files() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
envHooks+=(make_gobject_introspection_find_gir_files)
|
envHooks+=(make_gobject_introspection_find_gir_files)
|
||||||
|
|
||||||
|
_multioutMoveGlibGir() {
|
||||||
|
_moveToOutput share/gir-1.0 "${!outputDev}"
|
||||||
|
}
|
||||||
|
|
||||||
|
preFixupHooks+=(_multioutMoveGlibGir)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user