refactor to use autoreconfHook where possible

Close #12446.
This commit is contained in:
Robin Gloster
2016-01-18 10:45:31 +01:00
committed by Vladimír Čunát
parent 620c147cce
commit 53b389327e
50 changed files with 188 additions and 320 deletions
@@ -1,4 +1,4 @@
{ fetchurl, stdenv, ppl, autoconf, automake, libtool }:
{ fetchurl, stdenv, ppl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "cloog-ppl-0.15.11";
@@ -10,19 +10,14 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ ppl ];
nativeBuildInputs = [ automake autoconf libtool ];
nativeBuildInputs = [ autoreconfHook ];
patches = [ ./fix-ppl-version.patch ];
configureFlags = "--with-ppl=${ppl}";
preConfigure = ''
preAutoreconf = ''
touch NEWS ChangeLog AUTHORS
${libtool}/bin/libtoolize -c --force
${automake}/bin/aclocal
${automake}/bin/automake --add-missing
${automake}/bin/automake -a -c --foreign
${autoconf}/bin/autoreconf
'';
crossAttrs = {