2012-03-13 19:06:10 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, libxml2, gssdp, libsoup, 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";
|
|
|
|
version = "${majorVersion}.9";
|
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";
|
2014-01-11 12:28:12 +00:00
|
|
|
sha256 = "0vicydn3f72x1rqql7857ans85mg7dfap7n7h8xrfyb9whxhlrb1";
|
2008-06-18 20:03:58 +01:00
|
|
|
};
|
|
|
|
|
2012-03-13 19:06:10 +00:00
|
|
|
propagatedBuildInputs = [ libxml2 libsoup gssdp ];
|
|
|
|
buildInputs = [ glib libuuid ];
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-03-13 19:06:10 +00:00
|
|
|
|
2014-01-11 12:28:12 +00:00
|
|
|
postInstall = ''
|
|
|
|
cp -r ${libsoup}/include/libsoup-2.4/libsoup $out/include
|
|
|
|
cp -r ${gssdp}/include/gssdp-1.0/libgssdp $out/include
|
|
|
|
cp -r ${libxml2}/include/libxml2/libxml $out/include
|
|
|
|
'';
|
|
|
|
|
2012-03-13 19:06:10 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.gupnp.org/;
|
2014-01-11 12:28:12 +00:00
|
|
|
description = "GUPnP is an implementation of the UPnP specification.";
|
|
|
|
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
|
|
|
}
|