mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
* Add a setup hook ‘autoreconfHook’ to simplify packages that need to
run autoreconf: buildInputs = [ autoreconfHook ]; is essentially equivalent to buildInputs = [ autoconf automake libtool ]; preConfigure = "autoreconf -i"; svn path=/nixpkgs/branches/x-updates/; revision=34181
This commit is contained in:
parent
76c0be09f8
commit
41840af689
11
pkgs/build-support/setup-hooks/autoreconf.sh
Normal file
11
pkgs/build-support/setup-hooks/autoreconf.sh
Normal file
@ -0,0 +1,11 @@
|
||||
preConfigurePhases+=" autoreconfPhase"
|
||||
|
||||
for i in @autoconf@ @automake@ @libtool@; do
|
||||
findInputs $i nativePkgs propagated-build-native-inputs
|
||||
done
|
||||
|
||||
autoreconfPhase() {
|
||||
runHook preAutoreconf
|
||||
autoreconf ${autoreconfFlags:---install --force}
|
||||
runHook postAutoreconf
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libnih, dbus, udev, autoconf, automake, libtool, gettext }:
|
||||
{ stdenv, fetchurl, pkgconfig, libnih, dbus, udev, gettext, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mountall-2.35";
|
||||
@ -10,9 +10,7 @@ stdenv.mkDerivation {
|
||||
|
||||
patches = [ ./no-plymouth.patch ./fix-usr1-race.patch ];
|
||||
|
||||
preConfigure = "rm -R aclocal.m4; gettextize -f; autoreconf -vfi";
|
||||
|
||||
buildInputs = [ pkgconfig libnih dbus.libs udev autoconf automake libtool gettext ];
|
||||
buildInputs = [ pkgconfig libnih dbus.libs udev gettext autoreconfHook ];
|
||||
|
||||
makeFlags = "initramfshookdir=$(out)/share/initramfs-tools/hooks upstart_jobs_initramfs_configdir=$(out)/share/initramfs-tools/event-driven/upstart-jobs";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libusb1, zlib, autoconf, automake, libtool }:
|
||||
{ stdenv, fetchurl, pkgconfig, libusb1, zlib, autoreconfHook }:
|
||||
|
||||
let
|
||||
|
||||
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "05sxkm7b7lj8p8kr8kw68m49h66351s803z42233b8lssmc3wlra";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig libusb1 autoconf automake libtool zlib ];
|
||||
buildInputs = [ pkgconfig libusb1 autoreconfHook ];
|
||||
|
||||
preConfigure = "autoreconf -i";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, neon, zlib, openssl, autoconf, automake, libtool }:
|
||||
{ stdenv, fetchurl, neon, zlib, openssl, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sitecopy-0.16.6";
|
||||
@ -10,9 +10,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [ ./neon-29.patch ];
|
||||
|
||||
preConfigure = "autoreconf";
|
||||
|
||||
buildInputs = [ openssl neon zlib autoconf automake libtool ];
|
||||
buildInputs = [ openssl neon zlib autoreconfHook ];
|
||||
|
||||
configureFlags= "--with-ssl=openssl";
|
||||
}
|
||||
|
@ -245,6 +245,10 @@ let
|
||||
theAttrSet = arg;
|
||||
};
|
||||
|
||||
autoreconfHook = makeSetupHook
|
||||
{ substitutions = { inherit autoconf automake libtool; }; }
|
||||
../build-support/setup-hooks/autoreconf.sh;
|
||||
|
||||
buildEnv = import ../build-support/buildenv {
|
||||
inherit (pkgs) runCommand perl;
|
||||
};
|
||||
@ -327,7 +331,7 @@ let
|
||||
inherit stdenv perl cpio contents ubootChooser;
|
||||
};
|
||||
|
||||
makeWrapper = makeSetupHook {} ../build-support/make-wrapper/make-wrapper.sh;
|
||||
makeWrapper = makeSetupHook { } ../build-support/setup-hooks/make-wrapper.sh;
|
||||
|
||||
makeModulesClosure = {kernel, rootModules, allowMissing ? false}:
|
||||
import ../build-support/kernel/modules-closure.nix {
|
||||
@ -5824,9 +5828,7 @@ let
|
||||
|
||||
module_init_tools = callPackage ../os-specific/linux/module-init-tools { };
|
||||
|
||||
mountall = callPackage ../os-specific/linux/mountall {
|
||||
automake = automake111x;
|
||||
};
|
||||
mountall = callPackage ../os-specific/linux/mountall { };
|
||||
|
||||
aggregateModules = modules:
|
||||
import ../os-specific/linux/module-init-tools/aggregator.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user