summaryrefslogtreecommitdiff
path: root/pkgs/libupnpp/default.nix
blob: 577546272d2da74ceffe58431a41c5aa31b33c3b (plain)
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
36
37
38
39
40
41
42
{ pkgs ? import <nixpkgs> {}
, autoconf
, autoreconfHook
, curl
, expat
, fetchgit
, libmicrohttpd
, libnpupnp ? pkgs.eth.libnpupnp
, pkgconfig
, stdenv
}:

stdenv.mkDerivation rec {
  name = "libupnpp-${version}";
  version = "latest"; 

  src = fetchgit {
    url = "https://framagit.org/medoc92/libupnpp.git";
    rev = "762e35f4f66df183b8df8b1fc4dbab187068441d";
    sha256 = "085virkyz8cp55kd6k3zadhclh10qi78ijd84dnbmk852w57xsx9";
  };

  nativeBuildInputs = [
    autoconf
    autoreconfHook
    pkgconfig
  ];

  buildInputs = [
    curl.dev
    libnpupnp
    expat
  ];

  enableParallelBuilding = true;

  meta = {
    description = "A higher level C++ API over libnpupnp or libupnp";
    homepage = "https://www.lesbonscomptes.com/upmpdcli/libupnpp-refdoc/libupnpp-ctl.html";
    license = stdenv.lib.licenses.lgpl21;
  };
}