summary refs log tree commit diff
path: root/pkgs/os-specific/linux/iptables/1.4.0.nix
blob: ba4fbd06db89749aedc5a9ec755d4907e58723e3 (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
27
28
29
args : with args; with builderDefs {src="";} null;
  let localDefs = builderDefs (rec {
    src = /* put a fetchurl here */
    fetchurl {
      url = http://www.netfilter.org/projects/iptables/files/iptables-1.4.0.tar.bz2;
      sha256 = "0ljxbvdlg5mfxk0y00dr0qvsri1d495ci1pr8hrzga766n09g6px";
    };

    buildInputs = [];
    configureFlags = [];
    makeFlags = [
      " KERNEL_DIR=${kernelHeaders} "
    ];
    preBuild = FullDepEntry (''
      sed -e 's@/usr/local@'$out'@' -i Makefile Rules.make
    '') ["doUnpack" "minInit"];
  }) null; /* null is a terminator for sumArgs */
  in with localDefs;
stdenv.mkDerivation rec {
  name = "iptables-"+version;
  builder = writeScript (name + "-builder")
    (textClosure localDefs 
      [preBuild doMakeInstall doForceShare doPropagate]);
  meta = {
    description = "
     IPtables Linux firewall.
";
  };
}