2015-08-03 22:49:39 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gssdp, libsoup, libxml2, libuuid }:
|
2008-06-18 21:03:58 +02:00
|
|
|
|
2014-01-14 21:33:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gupnp-${version}";
|
|
|
|
majorVersion = "0.20";
|
2015-08-03 22:49:39 +02:00
|
|
|
version = "${majorVersion}.14";
|
|
|
|
|
2008-06-18 21:03:58 +02:00
|
|
|
src = fetchurl {
|
2014-01-14 21:33:11 +01:00
|
|
|
url = "mirror://gnome/sources/gupnp/${majorVersion}/gupnp-${version}.tar.xz";
|
2015-08-03 22:49:39 +02:00
|
|
|
sha256 = "77ffb940ba77c4a6426d09d41004c75d92652dcbde86c84ac1c847dbd9ad59bd";
|
2008-06-18 21:03:58 +02:00
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-08-03 22:49:39 +02:00
|
|
|
propagatedBuildInputs = [ glib gssdp libsoup libxml2 libuuid ];
|
2012-03-13 20:06:10 +01:00
|
|
|
|
2015-08-03 22:49:39 +02:00
|
|
|
postInstall = ''
|
2016-07-26 01:06:59 +02:00
|
|
|
ln -sv ${libsoup.dev}/include/libsoup-2*/libsoup $out/include
|
2015-10-05 13:23:01 +02:00
|
|
|
ln -sv ${libxml2.dev}/include/*/libxml $out/include
|
2015-08-03 22:49:39 +02:00
|
|
|
ln -sv ${gssdp}/include/*/libgssdp $out/include
|
|
|
|
'';
|
2014-01-11 13:28:12 +01:00
|
|
|
|
2012-03-13 20:06:10 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.gupnp.org/;
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "An implementation of the UPnP specification";
|
2014-01-11 13:28:12 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-03-13 20:06:10 +01:00
|
|
|
};
|
2008-06-18 21:03:58 +02:00
|
|
|
}
|