2018-08-14 23:45:35 +01:00
|
|
|
|
{ stdenv, fetchurl, pkgconfig, gobjectIntrospection, vala, gtk-doc, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_44, glib, gssdp, libsoup, libxml2, libuuid }:
|
|
|
|
|
|
2014-01-14 20:33:11 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "gupnp-${version}";
|
2018-08-15 00:13:16 +01:00
|
|
|
|
version = "1.0.3";
|
2018-08-14 23:45:35 +01:00
|
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-08-03 21:49:39 +01:00
|
|
|
|
|
2008-06-18 20:03:58 +01:00
|
|
|
|
src = fetchurl {
|
2018-08-14 23:45:35 +01:00
|
|
|
|
url = "mirror://gnome/sources/gupnp/${stdenv.lib.versions.majorMinor version}/gupnp-${version}.tar.xz";
|
2018-08-15 00:13:16 +01:00
|
|
|
|
sha256 = "1fyb6yn75vf2y1b8nbc1df572swzr74yiwy3v3g5xn36wlp1cjvr";
|
2008-06-18 20:03:58 +01:00
|
|
|
|
};
|
|
|
|
|
|
2018-08-14 23:45:35 +01:00
|
|
|
|
patches = [
|
|
|
|
|
# Nix’s pkg-config ignores Requires.private
|
|
|
|
|
# https://github.com/NixOS/nixpkgs/commit/1e6622f4d5d500d6e701bd81dd4a22977d10637d
|
|
|
|
|
# We are essentialy reverting the following patch for now
|
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=685477
|
|
|
|
|
# at least until Requires.internal or something is implemented
|
|
|
|
|
# https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/7
|
|
|
|
|
./fix-requires.patch
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig gobjectIntrospection vala gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_44 ];
|
2015-08-03 21:49:39 +01:00
|
|
|
|
propagatedBuildInputs = [ glib gssdp libsoup libxml2 libuuid ];
|
2012-03-13 19:06:10 +00:00
|
|
|
|
|
2018-08-14 23:45:35 +01:00
|
|
|
|
configureFlags = [
|
|
|
|
|
"--enable-gtk-doc"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
doCheck = true;
|
2014-01-11 12:28:12 +00:00
|
|
|
|
|
2018-08-14 23:45:35 +01:00
|
|
|
|
meta = with stdenv.lib; {
|
2012-03-13 19:06:10 +00:00
|
|
|
|
homepage = http://www.gupnp.org/;
|
2014-08-24 15:21:08 +01:00
|
|
|
|
description = "An implementation of the UPnP specification";
|
2018-08-14 23:45:35 +01:00
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
|
platforms = platforms.linux;
|
2012-03-13 19:06:10 +00:00
|
|
|
|
};
|
2008-06-18 20:03:58 +01:00
|
|
|
|
}
|