2018-08-14 23:58:52 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gobjectIntrospection, vala, gtk-doc, docbook_xsl, docbook_xml_dtd_412, gupnp, gst_all_1 }:
|
2017-08-30 23:21:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gupnp-dlna-${version}";
|
2018-08-14 23:58:52 +01:00
|
|
|
version = "0.10.5";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2017-08-30 23:21:50 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-08-14 23:58:52 +01:00
|
|
|
url = "mirror://gnome/sources/gupnp-dlna/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2017-08-30 23:21:50 +01:00
|
|
|
sha256 = "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj";
|
|
|
|
};
|
|
|
|
|
2018-08-14 23:58:52 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gobjectIntrospection vala gtk-doc docbook_xsl docbook_xml_dtd_412 ];
|
|
|
|
buildInputs = [ gupnp gst_all_1.gst-plugins-base ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-gtk-doc"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x tests/test-discoverer.sh.in
|
|
|
|
patchShebangs tests/test-discoverer.sh.in
|
|
|
|
'';
|
2017-08-30 23:21:50 +01:00
|
|
|
|
2018-08-14 23:58:52 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-30 23:21:50 +01:00
|
|
|
homepage = https://wiki.gnome.org/Projects/GUPnP/;
|
|
|
|
description = "Library to ease DLNA-related bits for applications using GUPnP";
|
2018-08-14 23:58:52 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2017-08-30 23:21:50 +01:00
|
|
|
};
|
|
|
|
}
|