From 91468a3ffa0a54b8a8442897a6ab594ad176d753 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Sat, 19 Apr 2014 00:42:49 +0200 Subject: [PATCH] grilo: enable gobject introspection --- pkgs/desktops/gnome-3/core/grilo/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome-3/core/grilo/default.nix b/pkgs/desktops/gnome-3/core/grilo/default.nix index 2a7f270300a4..3f7af667ca5e 100644 --- a/pkgs/desktops/gnome-3/core/grilo/default.nix +++ b/pkgs/desktops/gnome-3/core/grilo/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, file, intltool, glib, libxml2, gnome3 }: +{ stdenv, fetchurl, pkgconfig, file, intltool, glib, libxml2, gnome3, gobjectIntrospection }: stdenv.mkDerivation rec { name = "grilo-0.2.10"; @@ -10,7 +10,14 @@ stdenv.mkDerivation rec { configureFlags = [ "--enable-grl-pls" ]; - buildInputs = [ pkgconfig file intltool glib libxml2 gnome3.totem-pl-parser ]; + preConfigure = '' + for f in src/Makefile.in libs/pls/Makefile.in; do + substituteInPlace $f --replace @INTROSPECTION_GIRDIR@ "$out/share/gir-1.0/" + substituteInPlace $f --replace @INTROSPECTION_TYPELIBDIR@ "$out/lib/girepository-1.0" + done + ''; + + buildInputs = [ pkgconfig file intltool glib libxml2 gnome3.totem-pl-parser gobjectIntrospection ]; meta = with stdenv.lib; { homepage = https://wiki.gnome.org/action/show/Projects/Grilo;