2021-10-20 16:59:12 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-01-02 00:20:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-01-02 00:20:52 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, glib
|
|
|
|
, gssdp
|
|
|
|
, libsoup
|
|
|
|
, libxml2
|
|
|
|
, libuuid
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2019-01-02 00:20:52 +00:00
|
|
|
}:
|
2018-08-14 23:45:35 +01:00
|
|
|
|
2014-01-14 20:33:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-02 00:20:52 +00:00
|
|
|
pname = "gupnp";
|
2021-10-20 16:59:12 +01:00
|
|
|
version = "1.4.0";
|
2018-08-14 23:45:35 +01:00
|
|
|
|
2021-08-23 20:17:51 +01:00
|
|
|
outputs = [ "out" "dev" ]
|
|
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
2015-08-03 21:49:39 +01:00
|
|
|
|
2008-06-18 20:03:58 +01:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-10-20 16:59:12 +01:00
|
|
|
sha256 = "sha256-WQ/7ArhNoqGuxo/VNLxArxs33T9iI/nRV3/EirSL428=";
|
2008-06-18 20:03:58 +01:00
|
|
|
};
|
|
|
|
|
2021-06-28 22:13:42 +01:00
|
|
|
patches = [
|
2021-10-20 16:59:12 +01:00
|
|
|
# Bring .pc file in line with our patched pkg-config.
|
|
|
|
./0001-pkg-config-Declare-header-dependencies-as-public.patch
|
2021-06-28 22:13:42 +01:00
|
|
|
];
|
|
|
|
|
2021-08-23 20:17:51 +01:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-01-02 00:20:52 +00:00
|
|
|
gobject-introspection
|
|
|
|
vala
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
docbook_xml_dtd_44
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libuuid
|
2018-08-14 23:45:35 +01:00
|
|
|
];
|
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gssdp
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
];
|
2012-03-13 19:06:10 +00:00
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
mesonFlags = [
|
2021-08-23 20:17:51 +01:00
|
|
|
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
|
|
|
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2018-08-14 23:45:35 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2014-01-11 12:28:12 +00:00
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2019-01-02 00:20:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.gupnp.org/";
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "An implementation of the UPnP specification";
|
2018-08-14 23:45:35 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2012-03-13 19:06:10 +00:00
|
|
|
};
|
2008-06-18 20:03:58 +01:00
|
|
|
}
|