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

59 lines
1 KiB
Nix

{ stdenv
, lib
, fetchurl
, meson
, ninja
, gupnp
, gssdp
, pkg-config
, gtk3
, libuuid
, gettext
, gupnp-av
, gtksourceview4
, gnome
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "gupnp-tools";
version = "0.10.3";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "RX9Nkjk1sHhBXNK6iNeNtgB5tyWSa37hBuRWXv4yBN4=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
wrapGAppsHook
];
buildInputs = [
gupnp
libuuid
gssdp
gtk3
gupnp-av
gtksourceview4
gnome.adwaita-icon-theme
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Set of utilities and demos to work with UPnP";
homepage = "https://wiki.gnome.org/Projects/GUPnP";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}