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}";
|
2017-08-31 00:20:49 +02:00
|
|
|
majorVersion = "1.0";
|
|
|
|
version = "${majorVersion}.2";
|
2015-08-03 22:49:39 +02:00
|
|
|
|
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";
|
2017-08-31 00:20:49 +02:00
|
|
|
sha256 = "043nqxlj030a3wvd6x4c9z8fjarjjjsl2pjarl0nn70ig6kzswsi";
|
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
|
|
|
}
|