nixpkgs-suyu/pkgs/development/libraries/gupnp-av/default.nix
2022-11-14 14:20:45 +01:00

63 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchurl
, meson
, ninja
, pkg-config
, gobject-introspection
, vala
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_412
, glib
, libxml2
, gnome
}:
stdenv.mkDerivation rec {
pname = "gupnp-av";
version = "0.14.1";
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "t5zgzEsMZtnFS8Ihg6EOVwmgAR0q8nICWUjvyrM6Pk8=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
vala
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_412
];
buildInputs = [
glib
libxml2
];
mesonFlags = [
"-Dgtk_doc=true"
];
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
homepage = "http://gupnp.org/";
description = "A collection of helpers for building AV (audio/video) applications using GUPnP";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
};
}