about summary refs log tree commit diff
path: root/pkgs/tools/networking/miniupnpc/default.nix
blob: ac68b55ad17fb94521db9e480ff71fc10345a4e9 (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
{ stdenv, fetchFromGitHub }:

let version = "24d54ba13af4e53aba19c23898a373feecb41bd0"; in
stdenv.mkDerivation rec {
  name = "miniupnpc-${version}";

  src = fetchFromGitHub {
    owner = "miniupnp";
    repo = "miniupnp";
    sha256 = "0j78dvlfh1a3a27zhvv001cb1d7vcgyv33bd1zr36drg64b6hrgw";
    rev = version;
  };

  doCheck = true;

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

  meta = {
    inherit version;
    homepage = http://miniupnp.free.fr/;
    description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
    platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.freebsd;
  };
}