2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-03-16 00:29:38 +00:00
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2021-03-12 23:36:56 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2019-03-16 00:29:38 +00:00
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, glib
|
|
|
|
, gupnp
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2019-03-16 00:29:38 +00:00
|
|
|
}:
|
2018-09-08 01:07:59 +00:00
|
|
|
|
2012-03-13 19:06:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-03-16 00:29:38 +00:00
|
|
|
pname = "gupnp-igd";
|
2021-03-12 23:36:56 +00:00
|
|
|
version = "1.2.0";
|
2018-09-08 01:07:59 +00:00
|
|
|
|
2021-08-23 19:18:08 +00:00
|
|
|
outputs = [ "out" "dev" ]
|
|
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
2012-03-13 19:06:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-12 23:36:56 +00:00
|
|
|
sha256 = "sha256-S1EgCYqhPt0ngYup7k1/6WG/VAv1DQVv9wPGFUXgK+E=";
|
2012-03-13 19:06:17 +00:00
|
|
|
};
|
|
|
|
|
2021-08-23 19:18:08 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2019-03-16 00:29:38 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2021-03-12 23:36:56 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2019-03-16 00:29:38 +00:00
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gupnp
|
|
|
|
];
|
2012-03-13 19:06:17 +00:00
|
|
|
|
2021-03-12 23:36:56 +00:00
|
|
|
mesonFlags = [
|
2021-08-23 19:18:08 +00:00
|
|
|
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
|
|
|
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2018-09-08 01:07:59 +00:00
|
|
|
];
|
|
|
|
|
2021-04-28 16:31:37 +00:00
|
|
|
# Seems to get stuck sometimes.
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/119288
|
|
|
|
#doCheck = true;
|
2018-09-08 01:07:59 +00:00
|
|
|
|
2019-03-16 00:29:38 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-03-16 00:29:38 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2019-03-16 00:29:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-09-08 01:07:59 +00:00
|
|
|
description = "Library to handle UPnP IGD port mapping";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.gupnp.org/";
|
2021-03-12 23:36:56 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2022-10-20 01:04:08 +00:00
|
|
|
platforms = platforms.unix;
|
2012-03-13 19:06:17 +00:00
|
|
|
};
|
|
|
|
}
|