* Fixed flex-new.

svn path=/nixpkgs/trunk/; revision=893
This commit is contained in:
Eelco Dolstra 2004-04-01 14:24:30 +00:00
parent 9c711700e4
commit 8e4d58631e
4 changed files with 7 additions and 28 deletions

View File

@ -1,11 +0,0 @@
export buildinputs="$yacc $m4"
. $stdenv/setup
tar xvfj $src
cd flex-*
./configure --prefix=$out
make
make install
mkdir $out/nix-support
echo "$m4" > $out/nix-support/propagated-build-inputs

View File

@ -1,8 +0,0 @@
export buildinputs="$yacc"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd flex-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@ -1,11 +1,12 @@
{stdenv, fetchurl, yacc}:
assert yacc != null;
stdenv.mkDerivation {
name = "flex-2.5.4a";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/flex/flex-2.5.4a.tar.gz;
md5 = "bd8753d0b22e1f4ec87a553a73021adf";
};
yacc = yacc;
buildInputs = [yacc];
}

View File

@ -3,17 +3,14 @@
{stdenv, fetchurl, yacc, m4}:
assert yacc != null;
assert yacc != null && m4 != null;
derivation {
stdenv.mkDerivation {
name = "flex-2.5.31";
system = stdenv.system;
builder = ./builder-new.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/lex/flex-2.5.31.tar.bz2;
md5 = "363dcc4afc917dc51306eb9d3de0152f";
};
stdenv = stdenv;
yacc = yacc;
m4 = m4;
buildInputs = [yacc];
propagatedBuildInputs = [m4];
}