1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/development/libraries/gupnp/default.nix

29 lines
873 B
Nix
Raw Normal View History

2015-08-03 21:49:39 +01:00
{ stdenv, fetchurl, pkgconfig, glib, gssdp, libsoup, libxml2, libuuid }:
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
src = fetchurl {
url = "mirror://gnome/sources/gupnp/${majorVersion}/gupnp-${version}.tar.xz";
2017-08-30 23:20:49 +01:00
sha256 = "043nqxlj030a3wvd6x4c9z8fjarjjjsl2pjarl0nn70ig6kzswsi";
};
nativeBuildInputs = [ pkgconfig ];
2015-08-03 21:49:39 +01:00
propagatedBuildInputs = [ glib gssdp libsoup libxml2 libuuid ];
2015-08-03 21:49:39 +01:00
postInstall = ''
ln -sv ${libsoup.dev}/include/libsoup-2*/libsoup $out/include
ln -sv ${libxml2.dev}/include/*/libxml $out/include
2015-08-03 21:49:39 +01:00
ln -sv ${gssdp}/include/*/libgssdp $out/include
'';
meta = {
homepage = http://www.gupnp.org/;
description = "An implementation of the UPnP specification";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
};
}