summary refs log tree commit diff
path: root/pkgs/os-specific/linux/net-tools/default.nix
blob: 59af976a71b443e95f76c469ee84a8f50defa32a (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
{ stdenv, fetchurl }:

stdenv.mkDerivation {
  name = "net-tools-1.60";
  
  src = fetchurl {
    url = http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-1.60.tar.bz2;
    md5 = "888774accab40217dde927e21979c165";
  };

  patches = [ ./net-tools-labels.patch ];
  
  preBuild =
    ''
      cp ${./config.h} config.h
    '';

  makeFlags = "BASEDIR=$(out) mandir=/share/man";

  meta = {
    homepage = http://www.tazenda.demon.co.uk/phil/net-tools/;
    description = "A set of tools for controlling the network subsystem in Linux";
    license = "GPLv2+";
    platforms = stdenv.lib.platforms.linux;
  };
}