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}";
|
|
|
|
majorVersion = "0.20";
|
2015-08-03 21:49:39 +01:00
|
|
|
version = "${majorVersion}.14";
|
|
|
|
|
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";
|
2015-08-03 21:49:39 +01:00
|
|
|
sha256 = "77ffb940ba77c4a6426d09d41004c75d92652dcbde86c84ac1c847dbd9ad59bd";
|
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 = ''
|
|
|
|
ln -sv ${libsoup}/include/*/libsoup $out/include
|
|
|
|
ln -sv ${libxml2}/include/*/libxml $out/include
|
|
|
|
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
|
|
|
}
|