From 8e4d58631e1379e0352626aa91a963ec8e01ae13 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 1 Apr 2004 14:24:30 +0000 Subject: [PATCH] * Fixed flex-new. svn path=/nixpkgs/trunk/; revision=893 --- pkgs/development/tools/parsing/flex/builder-new.sh | 11 ----------- pkgs/development/tools/parsing/flex/builder.sh | 8 -------- pkgs/development/tools/parsing/flex/default.nix | 5 +++-- pkgs/development/tools/parsing/flex/flex-new.nix | 11 ++++------- 4 files changed, 7 insertions(+), 28 deletions(-) delete mode 100644 pkgs/development/tools/parsing/flex/builder-new.sh delete mode 100644 pkgs/development/tools/parsing/flex/builder.sh diff --git a/pkgs/development/tools/parsing/flex/builder-new.sh b/pkgs/development/tools/parsing/flex/builder-new.sh deleted file mode 100644 index 55947cd7e8c7..000000000000 --- a/pkgs/development/tools/parsing/flex/builder-new.sh +++ /dev/null @@ -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 diff --git a/pkgs/development/tools/parsing/flex/builder.sh b/pkgs/development/tools/parsing/flex/builder.sh deleted file mode 100644 index e032b0317151..000000000000 --- a/pkgs/development/tools/parsing/flex/builder.sh +++ /dev/null @@ -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 diff --git a/pkgs/development/tools/parsing/flex/default.nix b/pkgs/development/tools/parsing/flex/default.nix index b48a1d8621fa..2cd01a28276a 100644 --- a/pkgs/development/tools/parsing/flex/default.nix +++ b/pkgs/development/tools/parsing/flex/default.nix @@ -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]; } diff --git a/pkgs/development/tools/parsing/flex/flex-new.nix b/pkgs/development/tools/parsing/flex/flex-new.nix index 6da54271823b..e102a1d07935 100644 --- a/pkgs/development/tools/parsing/flex/flex-new.nix +++ b/pkgs/development/tools/parsing/flex/flex-new.nix @@ -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]; }