autoreconfHook: Simplify by avoiding findInputs

`findInputs` is a stdenv/setup helper we should strive not to call
elsewhere. Using normal deps is more idiomatic anyways.
This commit is contained in:
John Ericson 2017-09-06 11:24:00 -04:00
parent 422adc3063
commit d242978671
2 changed files with 1 additions and 5 deletions

View file

@ -1,9 +1,5 @@
preConfigurePhases+=" autoreconfPhase"
for i in @autoconf@ @automake@ @libtool@ @gettext@; do
findInputs $i nativePkgs propagated-native-build-inputs
done
autoreconfPhase() {
runHook preAutoreconf
autoreconf ${autoreconfFlags:---install --force --verbose}

View file

@ -69,7 +69,7 @@ with pkgs;
### BUILD SUPPORT
autoreconfHook = makeSetupHook
{ substitutions = { inherit autoconf automake gettext libtool; }; }
{ deps = [ autoconf automake gettext libtool ]; }
../build-support/setup-hooks/autoreconf.sh;
ensureNewerSourcesHook = { year }: makeSetupHook {}