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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.4 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
2021-08-23 19:18:08 +00:00
outputs = [ "out" "dev" ]
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "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=";
};
2021-08-23 19:18:08 +00:00
depsBuildBuild = [
pkg-config
];
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 = [
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
];
# 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;
2022-10-20 01:04:08 +00:00
platforms = platforms.unix;
};
}