Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv
2, lib
3, substituteAll
4, meson
5, ninja
6, pkg-config
7, wrapGAppsHook4
8, gssdp_1_6
9, gtk4
10, libsoup_3
11}:
12
13stdenv.mkDerivation rec {
14 pname = "gssdp-tools";
15 inherit (gssdp_1_6) version src;
16
17 patches = [
18 # Allow building tools separately from the library.
19 # This is needed to break the depenency cycle.
20 (substituteAll {
21 src = ./standalone-tools.patch;
22 inherit version;
23 })
24 ];
25
26 nativeBuildInputs = [
27 meson
28 ninja
29 pkg-config
30 wrapGAppsHook4
31 ];
32
33 buildInputs = [
34 gssdp_1_6
35 gtk4
36 libsoup_3
37 ];
38
39 preConfigure = ''
40 cd tools
41 '';
42
43 meta = with lib; {
44 description = "Device Sniffer tool based on GSSDP framework";
45 homepage = "http://www.gupnp.org/";
46 license = licenses.lgpl2Plus;
47 maintainers = gssdp_1_6.meta.maintainers;
48 platforms = platforms.all;
49 };
50}