gnome3.grilo: clean up

This commit is contained in:
Jan Tojnar 2018-06-18 03:59:02 +02:00
parent bf6974648e
commit 7de340761d
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig, file, intltool, glib
, libxml2, gnome3, gobjectIntrospection, libsoup, python3Packages }:
{ stdenv, fetchurl, pkgconfig, file, intltool, vala, glib, liboauth, gtk3
, gtk-doc, docbook_xsl, docbook_xml_dtd_43
, libxml2, gnome3, gobjectIntrospection, libsoup }:
let
pname = "grilo";
@ -7,6 +8,9 @@ let
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
outputs = [ "out" "dev" "man" "devdoc" ];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0vh67gja6yn7czh77ssmx6ncp99fl2926pbi2hplqms27c2n8sbw";
@ -14,20 +18,24 @@ in stdenv.mkDerivation rec {
setupHook = ./setup-hook.sh;
configureFlags = [ "--enable-grl-pls" "--enable-grl-net" ];
configureFlags = [
"--enable-grl-pls"
"--enable-grl-net"
"--enable-gtk-doc"
];
preConfigure = ''
for f in src/Makefile.in libs/pls/Makefile.in libs/net/Makefile.in; do
substituteInPlace $f --replace @INTROSPECTION_GIRDIR@ "$out/share/gir-1.0/"
substituteInPlace $f --replace @INTROSPECTION_GIRDIR@ "$dev/share/gir-1.0/"
substituteInPlace $f --replace @INTROSPECTION_TYPELIBDIR@ "$out/lib/girepository-1.0"
done
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ file intltool glib libxml2 libsoup
gnome3.totem-pl-parser ];
propagatedBuildInputs = [ python3Packages.pygobject3 gobjectIntrospection ];
nativeBuildInputs = [
file intltool pkgconfig gobjectIntrospection vala
gtk-doc docbook_xsl docbook_xml_dtd_43
];
buildInputs = [ glib liboauth gtk3 libxml2 libsoup gnome3.totem-pl-parser ];
passthru = {
updateScript = gnome3.updateScript {