nixpkgs/pkgs/tools/networking/gupnp-tools/default.nix

74 lines
1.5 KiB
Nix
Raw Normal View History

2021-10-20 17:59:16 +02:00
{ stdenv
, lib
, fetchurl
2021-10-20 17:59:16 +02:00
, fetchpatch
, meson
, ninja
, gupnp
, gssdp
2021-01-17 04:51:22 +01:00
, pkg-config
, gtk3
, libuuid
, gettext
, gupnp-av
, gtksourceview4
, gnome
, wrapGAppsHook
}:
2018-03-23 00:40:54 +01:00
2018-12-14 20:29:49 +01:00
stdenv.mkDerivation rec {
2018-03-23 00:40:54 +01:00
pname = "gupnp-tools";
2021-10-20 17:59:16 +02:00
version = "0.10.1";
src = fetchurl {
2021-01-15 10:19:50 +01:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-10-20 17:59:16 +02:00
sha256 = "TqltFnRis6VI78T8TqCJ/lGNfSm+NJ0czomCuf+1O0o=";
};
2021-10-20 17:59:16 +02:00
patches = [
# Fix compilation with -Werror=format-security.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gupnp-tools/commit/d738baae3bffaf6a8dfc12f5fe1ea13168fe2e48.patch";
sha256 = "wrORH4y9Yb0YGAsjzoeN2MM07y9o+91kx078RH0G76w=";
})
# Fix missing variable reference caused by the previous patch.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gupnp-tools/commit/9b852d91175bc7607ad845459ba29d07a16fcbce.patch";
sha256 = "WjEBN/+snJSIg4SUP5iChdj2auIyzePI0TH3Ilks7fk=";
})
];
nativeBuildInputs = [
meson
ninja
2021-01-17 04:51:22 +01:00
pkg-config
gettext
wrapGAppsHook
2018-12-14 20:29:49 +01:00
];
buildInputs = [
gupnp
libuuid
gssdp
gtk3
gupnp-av
gtksourceview4
gnome.adwaita-icon-theme
];
2018-03-23 00:40:54 +01:00
passthru = {
updateScript = gnome.updateScript {
2018-03-23 00:40:54 +01:00
packageName = pname;
versionPolicy = "odd-unstable";
2018-03-23 00:40:54 +01:00
};
};
meta = with lib; {
2018-03-23 00:40:54 +01:00
description = "Set of utilities and demos to work with UPnP";
homepage = "https://wiki.gnome.org/Projects/GUPnP";
2018-03-23 00:40:54 +01:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2018-03-23 00:40:54 +01:00
platforms = platforms.linux;
};
}