From feffa1aabf895f78bdaafe92990ebf4be34edc20 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Thu, 2 Mar 2017 13:00:25 +0100 Subject: [PATCH] cuter: fix build --- pkgs/development/tools/erlang/cuter/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/erlang/cuter/default.nix b/pkgs/development/tools/erlang/cuter/default.nix index 35b7774ab93f..b9682bead7d1 100644 --- a/pkgs/development/tools/erlang/cuter/default.nix +++ b/pkgs/development/tools/erlang/cuter/default.nix @@ -1,5 +1,5 @@ -{stdenv, autoconf, which, writeText, makeWrapper, fetchFromGitHub, erlang, - beamPackages, z3, python27 }: +{ stdenv, autoreconfHook, which, writeText, makeWrapper, fetchFromGitHub, erlang +, beamPackages, z3, python27 }: stdenv.mkDerivation rec { name = "cuter"; @@ -15,7 +15,9 @@ stdenv.mkDerivation rec { setupHook = writeText "setupHook.sh" '' addToSearchPath ERL_LIBS "$1/lib/erlang/lib/" ''; - buildInputs = with beamPackages; [ autoconf erlang z3 python27 makeWrapper which ]; + + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = with beamPackages; [ python27.pkgs.setuptools erlang z3 python27 makeWrapper which ]; buildFlags = "PWD=$(out)/lib/erlang/lib/cuter-${version} cuter_target"; configurePhase = ''