diff --git a/pkgs/development/tools/parsing/toolbuslib/builder.sh b/pkgs/development/tools/parsing/toolbuslib/builder.sh index 5a224b5498f7..7c28663f38cd 100644 --- a/pkgs/development/tools/parsing/toolbuslib/builder.sh +++ b/pkgs/development/tools/parsing/toolbuslib/builder.sh @@ -1,7 +1,3 @@ -buildinputs="$aterm" -. $stdenv/setup || exit 1 - -tar zxf $src || exit 1 -cd toolbuslib-* || exit 1 -./configure --prefix=$out --with-aterm=$aterm || exit 1 -make install || exit 1 +. $stdenv/setup +configureFlags="--with-aterm=$aterm" +genericBuild diff --git a/pkgs/development/tools/parsing/toolbuslib/toolbuslib-0.5.1.nix b/pkgs/development/tools/parsing/toolbuslib/toolbuslib-0.5.1.nix index 7422b294cff6..a494799587a4 100644 --- a/pkgs/development/tools/parsing/toolbuslib/toolbuslib-0.5.1.nix +++ b/pkgs/development/tools/parsing/toolbuslib/toolbuslib-0.5.1.nix @@ -1,11 +1,12 @@ -{stdenv, fetchurl, aterm}: derivation { +{stdenv, fetchurl, aterm}: + +stdenv.mkDerivation { name = "toolbuslib-0.5.1"; - system = stdenv.system; builder = ./builder.sh; src = fetchurl { url = http://www.cwi.nl/projects/MetaEnv/toolbuslib/toolbuslib-0.5.1.tar.gz; md5 = "1c7c7cce870f813bef60bbffdf061c90"; }; - stdenv = stdenv; - aterm = aterm; + buildInputs = [aterm]; } +