2016-09-18 20:35:23 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, file, intltool, glib
|
|
|
|
, libxml2, gnome3, gobjectIntrospection, libsoup, python3Packages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
major = "0.3"; # if you change this, also change ./setup-hook.sh
|
2017-10-03 02:10:29 +01:00
|
|
|
minor = "4";
|
2016-09-18 20:35:23 +01:00
|
|
|
name = "grilo-${major}.${minor}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/grilo/${major}/${name}.tar.xz";
|
2017-10-03 02:10:29 +01:00
|
|
|
sha256 = "0vh67gja6yn7czh77ssmx6ncp99fl2926pbi2hplqms27c2n8sbw";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-grl-pls" "--enable-grl-net" ];
|
|
|
|
|
|
|
|
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_TYPELIBDIR@ "$out/lib/girepository-1.0"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ file intltool glib libxml2 libsoup
|
2016-09-18 20:35:23 +01:00
|
|
|
gnome3.totem-pl-parser ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python3Packages.pygobject3 gobjectIntrospection ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/action/show/Projects/Grilo;
|
|
|
|
description = "Framework that provides access to various sources of multimedia content, using a pluggable system";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|