From 40675e46bd9d51c42234c516e3238c5f2412c569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 18 Apr 2012 18:42:44 +0000 Subject: [PATCH] GNU Hurd: Use `preConfigure' to `autoreconf' only. svn path=/nixpkgs/trunk/; revision=33835 --- pkgs/os-specific/gnu/hurd/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/gnu/hurd/default.nix b/pkgs/os-specific/gnu/hurd/default.nix index e37867e3bef5..0c9059a30085 100644 --- a/pkgs/os-specific/gnu/hurd/default.nix +++ b/pkgs/os-specific/gnu/hurd/default.nix @@ -40,10 +40,12 @@ stdenv.mkDerivation ({ then [ "--with-parted" ] else [ "--without-parted" ]); - preConfigure = - '' autoreconf -vfi + # Use `preConfigure' only for `autoreconf', so that users know they can + # simply clear it when the autoconf phase is unneeded. + preConfigure = "autoreconf -vfi"; - echo "removing \`-o root' from makefiles..." + postConfigure = + '' echo "removing \`-o root' from makefiles..." for mf in {utils,daemons}/Makefile do sed -i "$mf" -e's/-o root//g'