2015-08-03 20:49:39 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gssdp, libsoup, libxml2, libuuid }:
|
2008-06-18 19:03:58 +00:00
|
|
|
|
2014-01-14 20:33:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gupnp-${version}";
|
|
|
|
majorVersion = "0.20";
|
2015-08-03 20:49:39 +00:00
|
|
|
version = "${majorVersion}.14";
|
|
|
|
|
2008-06-18 19:03:58 +00:00
|
|
|
src = fetchurl {
|
2014-01-14 20:33:11 +00:00
|
|
|
url = "mirror://gnome/sources/gupnp/${majorVersion}/gupnp-${version}.tar.xz";
|
2015-08-03 20:49:39 +00:00
|
|
|
sha256 = "77ffb940ba77c4a6426d09d41004c75d92652dcbde86c84ac1c847dbd9ad59bd";
|
2008-06-18 19:03:58 +00:00
|
|
|
};
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-08-03 20:49:39 +00:00
|
|
|
propagatedBuildInputs = [ glib gssdp libsoup libxml2 libuuid ];
|
2012-03-13 19:06:10 +00:00
|
|
|
|
2015-08-03 20:49:39 +00:00
|
|
|
postInstall = ''
|
|
|
|
ln -sv ${libsoup}/include/*/libsoup $out/include
|
2015-10-05 11:23:01 +00:00
|
|
|
ln -sv ${libxml2.dev}/include/*/libxml $out/include
|
2015-08-03 20:49:39 +00: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 14:21:08 +00: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 19:03:58 +00:00
|
|
|
}
|