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:
parent
66c3040dbb
commit
c0bdcfe274
10
pkgs/development/tools/parsing/flex/builder-new.sh
Executable file
10
pkgs/development/tools/parsing/flex/builder-new.sh
Executable 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
|
18
pkgs/development/tools/parsing/flex/flex-new.nix
Normal file
18
pkgs/development/tools/parsing/flex/flex-new.nix
Normal 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;
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -4,6 +4,7 @@ let {
|
|||
[ pkgs.zip
|
||||
pkgs.unzip
|
||||
pkgs.valgrind
|
||||
pkgs.flexnew
|
||||
pkgs.par2cmdline
|
||||
pkgs.cksfv
|
||||
pkgs.graphviz
|
||||
|
|
Loading…
Reference in a new issue