nixpkgs/pkgs/development/libraries/gupnp-igd/default.nix

65 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-03-16 00:29:38 +00:00
, fetchurl
, 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
, gnome
2019-03-16 00:29:38 +00:00
}:
2018-09-08 01:07:59 +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
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
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=";
};
2019-03-16 00:29:38 +00:00
nativeBuildInputs = [
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
];
2021-03-12 23:36:56 +00:00
mesonFlags = [
"-Dgtk_doc=true"
2018-09-08 01:07:59 +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 = {
updateScript = gnome.updateScript {
2019-03-16 00:29:38 +00:00
packageName = pname;
versionPolicy = "odd-unstable";
2019-03-16 00:29:38 +00:00
};
};
meta = with lib; {
2018-09-08 01:07:59 +00:00
description = "Library to handle UPnP IGD port mapping";
homepage = "http://www.gupnp.org/";
2021-03-12 23:36:56 +00:00
license = licenses.lgpl21Plus;
2018-09-08 01:07:59 +00:00
platforms = platforms.linux;
};
}