Ported ffmpeg_svn tarball link; fixes to iptables

svn path=/nixpkgs/branches/stdenv-updates/; revision=10651
This commit is contained in:
Michael Raskin 2008-02-12 21:47:49 +00:00
parent 270646012a
commit a25344377e
4 changed files with 36 additions and 16 deletions

View File

@ -2,10 +2,9 @@ args: with args;
stdenv.mkDerivation {
name = "ffmpeg-svn-2007-12-04";
src = fetchsvn {
url = svn://svn.mplayerhq.hu/ffmpeg/trunk ;
rev = "11164";
sha256 = "80d3b3311abaf8343b73c711f02d269e8c87991f2c3d0f08e32309d39ad6aa3b";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/ffmpeg-svn-r11901.tar.bz2;
sha256 = "0l5207gnfaz57pvlxpxyjphyz0mp9plnxzd0aghy0nz3hmqh4rs7";
};
propagatedBuildInputs = [ a52dec lame libtheora x11 zlib SDL];

View File

@ -0,0 +1,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.
";
};
}

View File

@ -1,10 +0,0 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "iptables-1.3.7";
src = fetchurl {
url = http://www.netfilter.org/projects/iptables/files/iptables-1.3.7.tar.bz2;
sha256 = "00nffc03akgm5p0skz90nl29h5d8b9fjc0d9lhipkbwy0ahcw00f";
};
preBuild = "makeFlagsArray=(PREFIX=$out)";
}

View File

@ -3419,10 +3419,12 @@ rec {
kernelHeaders = stdenv.gcc.libc.kernelHeaders;
};
iptables = import ../os-specific/linux/iptables {
inherit fetchurl stdenv;
iptablesFun = lib.sumArgs (selectVersion ../os-specific/linux/iptables "1.4.0") {
inherit builderDefs kernelHeaders;
};
iptables = iptablesFun null;
ipw2200fw = import ../os-specific/linux/firmware/ipw2200 {
inherit fetchurl stdenv;
};