2021-10-20 17:59:00 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-01-02 01:14:08 +01:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-01-02 01:14:08 +01:00
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
2021-10-20 17:59:00 +02:00
|
|
|
, gi-docgen
|
|
|
|
, python3
|
2019-01-02 01:14:08 +01:00
|
|
|
, libsoup
|
|
|
|
, glib
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2021-10-20 19:46:57 +02:00
|
|
|
, gssdp-tools
|
2019-01-02 01:14:08 +01:00
|
|
|
}:
|
2008-02-26 21:47:30 +01:00
|
|
|
|
2017-03-13 01:41:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-02 01:14:08 +01:00
|
|
|
pname = "gssdp";
|
2021-10-20 17:59:00 +02:00
|
|
|
version = "1.4.0.1";
|
2012-03-13 20:06:03 +01:00
|
|
|
|
2021-11-07 16:32:48 +01:00
|
|
|
outputs = [ "out" "dev" ]
|
|
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
2018-08-15 00:37:30 +02:00
|
|
|
|
2008-02-26 21:47:30 +01:00
|
|
|
src = fetchurl {
|
2021-01-21 18:00:13 +01:00
|
|
|
url = "mirror://gnome/sources/gssdp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-10-20 17:59:00 +02:00
|
|
|
sha256 = "hnaEnVf7giuHKIVtut6/OGf4nuR6DsR6IARdAR9DFYI=";
|
2008-02-26 21:47:30 +01:00
|
|
|
};
|
|
|
|
|
2019-01-02 01:14:08 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-01-02 01:14:08 +01:00
|
|
|
gobject-introspection
|
|
|
|
vala
|
2021-10-20 17:59:00 +02:00
|
|
|
gi-docgen
|
|
|
|
python3
|
2019-01-02 01:14:08 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsoup
|
|
|
|
];
|
2008-02-26 21:47:30 +01:00
|
|
|
|
2019-01-02 01:14:08 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-11-07 16:32:48 +01:00
|
|
|
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2021-10-20 17:59:00 +02:00
|
|
|
"-Dsniffer=false"
|
2021-11-07 16:32:48 +01:00
|
|
|
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2018-08-15 00:37:30 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-11-07 16:32:48 +01:00
|
|
|
postFixup = lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) ''
|
2021-10-20 19:46:57 +02:00
|
|
|
# Move developer documentation to devdoc output.
|
2021-10-20 17:59:00 +02:00
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
find -L "$out/share/doc" -type f -regex '.*\.devhelp2?' -print0 \
|
|
|
|
| while IFS= read -r -d ''' file; do
|
|
|
|
moveToOutput "$(dirname "''${file/"$out/"/}")" "$devdoc"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2019-01-02 01:14:08 +01:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2019-01-02 01:14:08 +01:00
|
|
|
packageName = pname;
|
|
|
|
};
|
2021-10-20 19:46:57 +02:00
|
|
|
|
|
|
|
tests = {
|
|
|
|
inherit gssdp-tools;
|
|
|
|
};
|
2019-01-02 01:14:08 +01:00
|
|
|
};
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "GObject-based API for handling resource discovery and announcement over SSDP";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.gupnp.org/";
|
2018-08-15 00:37:30 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
2021-10-20 17:59:00 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2017-03-13 01:41:00 +01:00
|
|
|
platforms = platforms.all;
|
2008-02-26 21:47:30 +01:00
|
|
|
};
|
|
|
|
}
|