summary refs log tree commit diff
path: root/pkgs/tools/networking/minissdpd/default.nix
blob: 869abe92e5c2acb487842f921c233a9e975e75ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, stdenv, fetchurl, libnfnetlink }:

stdenv.mkDerivation rec {
  pname = "minissdpd";
  version = "1.5.20180223";

  src = fetchurl {
    sha256 = "1c47h1zil04jnbxiaaci2rm8jij47zp5156v48hb6m87nh4l5adv";
    url = "http://miniupnp.free.fr/files/download.php?file=${pname}-${version}.tar.gz";
    name = "${pname}-${version}.tar.gz";
  };

  buildInputs = [ libnfnetlink ];

  installFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];

  enableParallelBuilding = true;

  doCheck = true;

  meta = with lib; {
    description = "Small daemon to speed up UPnP device discoveries";
    longDescription = ''
      MiniSSDPd receives NOTIFY packets and stores (caches) that information
      for later use by UPnP Control Points on the machine. MiniSSDPd receives
      M-SEARCH packets and answers on behalf of the UPnP devices running on
      the machine. Software must be patched in order to take advantage of
      MiniSSDPd, and MiniSSDPd must be started before any other UPnP program.
    '';
    homepage = "http://miniupnp.free.fr/minissdpd.html";
    downloadPage = "http://miniupnp.free.fr/files/";
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}