2018-11-20 20:34:13 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, vala, glib, liboauth, gtk3
|
2018-06-18 03:59:02 +02:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43
|
|
|
|
, libxml2, gnome3, gobjectIntrospection, libsoup }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-03 07:09:13 +01:00
|
|
|
let
|
|
|
|
pname = "grilo";
|
2018-11-20 20:34:13 +01:00
|
|
|
version = "0.3.7"; # if you change minor, also change ./setup-hook.sh
|
2018-03-03 07:09:13 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-06-18 03:59:02 +02:00
|
|
|
outputs = [ "out" "dev" "man" "devdoc" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-11-20 20:34:13 +01:00
|
|
|
sha256 = "1dz965l743r4bhj78wij9k1mb6635gnkb1lnk9j7gw9dd5qsyfza";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2018-11-20 20:34:13 +01:00
|
|
|
patches = [
|
|
|
|
# Fix meson build: https://gitlab.gnome.org/GNOME/grilo/merge_requests/34
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/grilo/commit/166612aeff09e5fc2fec1f62185c84cbdcf8f889.diff";
|
|
|
|
sha256 = "07zamy927iaa7knrwq5yxz7ypl1i02pymkcdrg5l55alhdvb81pw";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2018-11-20 20:34:13 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
2018-06-18 03:59:02 +02:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-06-18 03:59:02 +02:00
|
|
|
nativeBuildInputs = [
|
2018-11-20 20:34:13 +01:00
|
|
|
meson ninja pkgconfig gettext gobjectIntrospection vala
|
2018-06-18 03:59:02 +02:00
|
|
|
gtk-doc docbook_xsl docbook_xml_dtd_43
|
|
|
|
];
|
|
|
|
buildInputs = [ glib liboauth gtk3 libxml2 libsoup gnome3.totem-pl-parser ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-03 07:09:13 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-03 07:09:13 +01:00
|
|
|
homepage = https://wiki.gnome.org/Projects/Grilo;
|
2016-09-18 21:35:23 +02: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;
|
|
|
|
};
|
|
|
|
}
|