2018-06-18 02:59:02 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, file, intltool, vala, glib, liboauth, gtk3
|
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43
|
|
|
|
, libxml2, gnome3, gobjectIntrospection, libsoup }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 06:09:13 +00:00
|
|
|
let
|
|
|
|
pname = "grilo";
|
2018-07-31 22:03:23 +01:00
|
|
|
version = "0.3.6"; # if you change minor, also change ./setup-hook.sh
|
2018-03-03 06:09:13 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-06-18 02:59:02 +01:00
|
|
|
outputs = [ "out" "dev" "man" "devdoc" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
src = fetchurl {
|
2018-03-03 06:09:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-07-31 22:03:23 +01:00
|
|
|
sha256 = "14cwpk9jxi8rfjcmkav37zf0m52b1lqpkpkz858h80jqvn1clr8y";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2018-06-18 02:59:02 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-grl-pls"
|
|
|
|
"--enable-grl-net"
|
|
|
|
"--enable-gtk-doc"
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
for f in src/Makefile.in libs/pls/Makefile.in libs/net/Makefile.in; do
|
2018-06-18 02:59:02 +01:00
|
|
|
substituteInPlace $f --replace @INTROSPECTION_GIRDIR@ "$dev/share/gir-1.0/"
|
2016-09-18 20:35:23 +01:00
|
|
|
substituteInPlace $f --replace @INTROSPECTION_TYPELIBDIR@ "$out/lib/girepository-1.0"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-06-18 02:59:02 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
file intltool pkgconfig gobjectIntrospection vala
|
|
|
|
gtk-doc docbook_xsl docbook_xml_dtd_43
|
|
|
|
];
|
|
|
|
buildInputs = [ glib liboauth gtk3 libxml2 libsoup gnome3.totem-pl-parser ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 06:09:13 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-03 06:09:13 +00:00
|
|
|
homepage = https://wiki.gnome.org/Projects/Grilo;
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Framework that provides access to various sources of multimedia content, using a pluggable system";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|