1 { lib, stdenv, fetchpatch, fetchurl, meson, ninja, pkg-config, gettext, libxml2, gobject-introspection, gnome, glib }:
3 stdenv.mkDerivation rec {
4 pname = "totem-pl-parser";
8 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
9 sha256 = "wN8PaNXPnX2kPIHH8T8RFYNYNo+Ywi1Hci870EvTrBw=";
13 # Upstream MR: https://gitlab.gnome.org/GNOME/totem-pl-parser/-/merge_requests/46
15 url = "https://gitlab.gnome.org/GNOME/totem-pl-parser/-/commit/f4f69c9b99095416aaed18a73f7486ad9eb04aa9.patch";
16 sha256 = "sha256-Uya5fgFgauv5rIpVK3CDGCieyMus7VjcLMMe/vQ2WWY=";
21 updateScript = gnome.updateScript {
23 versionPolicy = "odd-unstable";
28 depsBuildBuild = [ pkg-config ];
29 nativeBuildInputs = [ meson ninja pkg-config gettext glib gobject-introspection ];
30 buildInputs = [ libxml2 glib ];
32 mesonFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
33 "-Dintrospection=false"
37 homepage = "https://gitlab.gnome.org/GNOME/totem-pl-parser";
38 description = "Simple GObject-based library to parse and save a host of playlist formats";
39 maintainers = teams.gnome.members;
40 license = licenses.lgpl2;
41 platforms = platforms.unix;