summaryrefslogtreecommitdiff
path: root/pkgs/libnpupnp/default.nix
blob: ced2d5842bb25280a02908b5cbbe7f6b05c81be5 (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
{ pkgs ? import <nixpkgs> {}
, autoconf
, autoreconfHook
, curl
, expat
, fetchgit
, libmicrohttpd
, pkgconfig
, stdenv
}:

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

  src = fetchgit {
    url = "https://framagit.org/medoc92/npupnp.git";
    rev = "98433263968de83f13416bf096a31fa354a646fa";
    sha256 = "0i5hd7pbmcdhh46hqf50881jbl7ycv3gpvczbpzkx5ffbnpxxika";
  };

  nativeBuildInputs = [
    autoconf
    autoreconfHook
    pkgconfig
  ];

  buildInputs = [
    curl.dev
    expat
    libmicrohttpd
  ];

  meta = {
    description = "A C++ base UPnP library, derived from Portable UPnP, a.k.a libupnp";
    homepage = "https://framagit.org/medoc92/npupnp";
    license = stdenv.lib.licenses.bsd3;
  };
}