2021-10-20 15:59:00 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-01-02 00:14:08 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-01-02 00:14:08 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
2021-10-20 15:59:00 +00:00
|
|
|
, gi-docgen
|
|
|
|
, python3
|
2019-01-02 00:14:08 +00:00
|
|
|
, libsoup
|
|
|
|
, glib
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2021-10-20 17:46:57 +00:00
|
|
|
, gssdp-tools
|
2019-01-02 00:14:08 +00:00
|
|
|
}:
|
2008-02-26 20:47:30 +00:00
|
|
|
|
2017-03-13 00:41:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-02 00:14:08 +00:00
|
|
|
pname = "gssdp";
|
2021-10-20 15:59:00 +00:00
|
|
|
version = "1.4.0.1";
|
2012-03-13 19:06:03 +00:00
|
|
|
|
2021-11-07 15:32:48 +00:00
|
|
|
outputs = [ "out" "dev" ]
|
|
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
2018-08-14 22:37:30 +00:00
|
|
|
|
2008-02-26 20:47:30 +00:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/gssdp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-10-20 15:59:00 +00:00
|
|
|
sha256 = "hnaEnVf7giuHKIVtut6/OGf4nuR6DsR6IARdAR9DFYI=";
|
2008-02-26 20:47:30 +00:00
|
|
|
};
|
|
|
|
|
2019-01-02 00:14:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-01-02 00:14:08 +00:00
|
|
|
gobject-introspection
|
|
|
|
vala
|
2021-10-20 15:59:00 +00:00
|
|
|
gi-docgen
|
|
|
|
python3
|
2019-01-02 00:14:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsoup
|
|
|
|
];
|
2008-02-26 20:47:30 +00:00
|
|
|
|
2019-01-02 00:14:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-11-07 15:32:48 +00:00
|
|
|
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2021-10-20 15:59:00 +00:00
|
|
|
"-Dsniffer=false"
|
2021-11-07 15:32:48 +00:00
|
|
|
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2018-08-14 22:37:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-11-07 15:32:48 +00:00
|
|
|
postFixup = lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) ''
|
2021-10-20 17:46:57 +00:00
|
|
|
# Move developer documentation to devdoc output.
|
2021-10-20 15:59:00 +00: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 00:14:08 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-01-02 00:14:08 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
2021-10-20 17:46:57 +00:00
|
|
|
|
|
|
|
tests = {
|
|
|
|
inherit gssdp-tools;
|
|
|
|
};
|
2019-01-02 00:14:08 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "GObject-based API for handling resource discovery and announcement over SSDP";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.gupnp.org/";
|
2018-08-14 22:37:30 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2021-10-20 15:59:00 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2017-03-13 00:41:00 +00:00
|
|
|
platforms = platforms.all;
|
2008-02-26 20:47:30 +00:00
|
|
|
};
|
|
|
|
}
|