3
0
Fork 0
forked from mirrors/nixpkgs

* A much newer version of flex. The old (GNU) one was from 1997.

svn path=/nixpkgs/trunk/; revision=727
This commit is contained in:
Eelco Dolstra 2004-01-30 10:10:06 +00:00
parent 66c3040dbb
commit c0bdcfe274
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#! /bin/sh
export buildinputs="$yacc"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd flex-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View file

@ -0,0 +1,18 @@
# !!! this should be moved to default.nix eventually (but I delay
# doing that since it would cause a rebuild of lots of stuff).
{stdenv, fetchurl, yacc}:
assert !isNull yacc;
derivation {
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;
}

View file

@ -209,6 +209,12 @@
yacc = bison;
};
flexnew = (import ../development/tools/parsing/flex/flex-new.nix) {
fetchurl = fetchurl;
stdenv = stdenv;
yacc = bison;
};
gcc = (import ../development/compilers/gcc) {
fetchurl = fetchurl;
stdenv = stdenv;

View file

@ -4,6 +4,7 @@ let {
[ pkgs.zip
pkgs.unzip
pkgs.valgrind
pkgs.flexnew
pkgs.par2cmdline
pkgs.cksfv
pkgs.graphviz