nixpkgs/pkgs/development/libraries/totem-pl-parser/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gettext, libxml2, gobject-introspection, gnome, glib }:
stdenv.mkDerivation rec {
pname = "totem-pl-parser";
2021-08-14 14:22:40 +00:00
version = "3.26.6";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-08-14 14:22:40 +00:00
sha256 = "wN8PaNXPnX2kPIHH8T8RFYNYNo+Ywi1Hci870EvTrBw=";
};
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};
};
strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config gettext glib gobject-introspection ];
buildInputs = [ libxml2 glib ];
mesonFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Dintrospection=false"
];
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Videos";
description = "Simple GObject-based library to parse and save a host of playlist formats";
maintainers = teams.gnome.members;
license = licenses.lgpl2;
platforms = platforms.linux;
};
}