mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
gupnp_1_6: init at 1.5.3
https://gitlab.gnome.org/GNOME/gupnp/-/compare/gupnp-1.4.3...gupnp-1.5.3 Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
parent
64c9444f97
commit
c7df550cba
88
pkgs/development/libraries/gupnp/1.6.nix
Normal file
88
pkgs/development/libraries/gupnp/1.6.nix
Normal file
@ -0,0 +1,88 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gobject-introspection
|
||||
, vala
|
||||
, gi-docgen
|
||||
, glib
|
||||
, gssdp_1_6
|
||||
, libsoup_3
|
||||
, libxml2
|
||||
, gnome
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gupnp";
|
||||
version = "1.5.3";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-dF4/qzOzqhbbNCYxmK/c/9XjWCKjKA277O9210HEhoc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Do not use deprecated symbols after libsoup update.
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/gupnp/-/commit/1296d10eda308792d2924f141d72b8b6818878bd.patch";
|
||||
sha256 = "mboJQ9I7oV+HXt0atUSLt6FDTCCT22lbuI7OUb0tDLM=";
|
||||
})
|
||||
|
||||
# Fix test after libsoup update.
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/gupnp/-/commit/fba0ca75445189f6554bd66fb3aa4f022b8f69e9.patch";
|
||||
sha256 = "6dkpnDqHVvesrzEIYLbHdoB0dfePr0ll8jQxijuu24E=";
|
||||
})
|
||||
];
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
vala
|
||||
gi-docgen
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
glib
|
||||
gssdp_1_6
|
||||
libsoup_3
|
||||
libxml2
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dgtk_doc=true"
|
||||
"-Dintrospection=true"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postFixup = ''
|
||||
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
||||
moveToOutput "share/doc" "$devdoc"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
attrPath = "gupnp_1_6";
|
||||
packageName = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.gupnp.org/";
|
||||
description = "An implementation of the UPnP specification";
|
||||
license = licenses.lgpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -72,6 +72,7 @@ stdenv.mkDerivation rec {
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
freeze = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -7460,6 +7460,8 @@ with pkgs;
|
||||
|
||||
gupnp = callPackage ../development/libraries/gupnp { };
|
||||
|
||||
gupnp_1_6 = callPackage ../development/libraries/gupnp/1.6.nix { };
|
||||
|
||||
gupnp-av = callPackage ../development/libraries/gupnp-av {};
|
||||
|
||||
gupnp-dlna = callPackage ../development/libraries/gupnp-dlna {};
|
||||
|
Loading…
Reference in New Issue
Block a user