2021-08-30 10:43:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, meson, ninja, pkg-config, gettext, vala, glib, liboauth, gtk3
|
2019-09-15 02:05:16 +00:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43
|
2021-05-07 21:18:14 +00:00
|
|
|
, libxml2, gnome, gobject-introspection, libsoup, totem-pl-parser }:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-03 06:09:13 +00:00
|
|
|
let
|
|
|
|
pname = "grilo";
|
2020-09-18 15:29:03 +00:00
|
|
|
version = "0.3.13"; # 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 19:35:23 +00:00
|
|
|
|
2018-06-18 01:59:02 +00:00
|
|
|
outputs = [ "out" "dev" "man" "devdoc" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
2016-09-18 19:35:23 +00:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-09-18 15:29:03 +00:00
|
|
|
sha256 = "0ywjvh7xw4ql1q4fvl0q5n06n08pga1g1nc9l7c3x5214gr3fj6i";
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
|
2021-08-30 10:43:07 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2021-39365.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/grilo/-/commit/cd2472e506dafb1bb8ae510e34ad4797f63e263e.patch";
|
|
|
|
sha256 = "1i1p21vlms43iawg4dl1dibnpsbnkx27kcfvllnx76q07bfrpwzm";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-09-18 19:35:23 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2018-11-20 19:34:13 +00:00
|
|
|
mesonFlags = [
|
2019-09-15 02:05:16 +00:00
|
|
|
"-Denable-gtk-doc=true"
|
2019-07-19 02:50:02 +00:00
|
|
|
];
|
|
|
|
|
2018-06-18 01:59:02 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
meson ninja pkg-config gettext gobject-introspection vala
|
2018-06-18 01:59:02 +00:00
|
|
|
gtk-doc docbook_xsl docbook_xml_dtd_43
|
|
|
|
];
|
2018-12-25 22:27:49 +00:00
|
|
|
buildInputs = [ glib liboauth gtk3 libxml2 libsoup totem-pl-parser ];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-03 06:09:13 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 06:09:13 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Grilo";
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Framework that provides access to various sources of multimedia content, using a pluggable system";
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|