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