2021-10-20 15:59:12 +00: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 21:18:14 +00:00
|
|
|
, gnome
|
2019-01-02 00:20:52 +00:00
|
|
|
}:
|
2018-08-14 22:45:35 +00:00
|
|
|
|
2014-01-14 20:33:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-02 00:20:52 +00:00
|
|
|
pname = "gupnp";
|
2022-01-23 23:27:33 +00:00
|
|
|
version = "1.4.3";
|
2018-08-14 22:45:35 +00:00
|
|
|
|
2021-08-23 19:17:51 +00:00
|
|
|
outputs = [ "out" "dev" ]
|
|
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
2015-08-03 20:49:39 +00:00
|
|
|
|
2008-06-18 19:03:58 +00:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-01-23 23:27:33 +00:00
|
|
|
sha256 = "sha256-FO2nd5NNot90PQckiZM72YETMre1v0Fia4Ay77KLM7o=";
|
2008-06-18 19:03:58 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 21:13:42 +00:00
|
|
|
patches = [
|
2021-10-20 15:59:12 +00:00
|
|
|
# Bring .pc file in line with our patched pkg-config.
|
|
|
|
./0001-pkg-config-Declare-header-dependencies-as-public.patch
|
2021-06-28 21:13:42 +00:00
|
|
|
];
|
|
|
|
|
2021-08-23 19:17:51 +00: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 22:45:35 +00: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 19:17:51 +00:00
|
|
|
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
|
|
|
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2018-08-14 22:45:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2014-01-11 12:28:12 +00:00
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00: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 01:11:51 +00:00
|
|
|
homepage = "http://www.gupnp.org/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "An implementation of the UPnP specification";
|
2018-08-14 22:45:35 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2012-03-13 19:06:10 +00:00
|
|
|
};
|
2008-06-18 19:03:58 +00:00
|
|
|
}
|