mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
71f8e0911a
svn path=/nixpkgs/trunk/; revision=10913
31 lines
878 B
Nix
31 lines
878 B
Nix
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.
|
|
";
|
|
inherit src;
|
|
};
|
|
}
|