diff --git a/pkgs/development/tools/parsing/sdf-support/builder.sh b/pkgs/development/tools/parsing/sdf-support/builder.sh index 8e0c8537dafb..b366ccb79097 100644 --- a/pkgs/development/tools/parsing/sdf-support/builder.sh +++ b/pkgs/development/tools/parsing/sdf-support/builder.sh @@ -1,7 +1,3 @@ -buildinputs="$aterm $ptsupport $toolbuslib" -. $stdenv/setup || exit 1 - -tar zxf $src || exit 1 -cd sdf-support-* || exit 1 -./configure --prefix=$out --with-aterm=$aterm --with-toolbuslib=$toolbuslib --with-pt-support=$ptsupport || exit 1 -make install || exit 1 +. $stdenv/setup +configureFlags="--with-aterm=$aterm --with-toolbuslib=$toolbuslib --with-pt-support=$ptsupport" +genericBuild diff --git a/pkgs/development/tools/parsing/sdf-support/sdf-support-2.0.nix b/pkgs/development/tools/parsing/sdf-support/sdf-support-2.0.nix index 8764ececa77b..4b314887a914 100644 --- a/pkgs/development/tools/parsing/sdf-support/sdf-support-2.0.nix +++ b/pkgs/development/tools/parsing/sdf-support/sdf-support-2.0.nix @@ -1,13 +1,12 @@ -{stdenv, fetchurl, aterm, toolbuslib, ptsupport}: derivation { +{stdenv, fetchurl, aterm, toolbuslib, ptsupport}: + +stdenv.mkDerivation { name = "sdf-support-2.0"; - system = stdenv.system; builder = ./builder.sh; src = fetchurl { url = http://www.cwi.nl/projects/MetaEnv/sdf-support/sdf-support-2.0.tar.gz; md5 = "2987b89ed1d73e34e128b895ff44264c"; }; - stdenv = stdenv; - aterm = aterm; - ptsupport = ptsupport; - toolbuslib = toolbuslib; + inherit stdenv aterm ptsupport toolbuslib; + buildInputs = [stdenv aterm ptsupport toolbuslib]; }