summary refs log tree commit diff
path: root/pkgs/tools/networking/ahcpd/default.nix
blob: 4b03c3cf27874468c4b036a75fff6dd5db900998 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "ahcpd-0.53";

  src = fetchurl {
    url = "http://www.pps.univ-paris-diderot.fr/~jch/software/files/${name}.tar.gz";
    sha256 = "0lhdmky3zdyk51hclv2lrhw3hzymbdc8bw2khs3rnaibgn0jwqm4";
  };

  preBuild = ''
    makeFlags="PREFIX=$out ETCDIR=$out/etc"
    sed -i -e s,etc,$out/etc, Makefile
  '';

  meta = {
    homepage = http://www.pps.univ-paris-diderot.fr/~jch/software/ahcp/;
    description = "Autoconfiguration protocol for IPv6 and dual-stack IPv6/IPv4 networks";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.linux;
  };
}