From 363381f3c223aeadfd9f56421481769422031c3a Mon Sep 17 00:00:00 2001 From: Kranium Gikos Mendoza Date: Sun, 31 Jul 2016 10:06:37 +0800 Subject: [PATCH] cpuminer: fix darwin build --- pkgs/tools/misc/cpuminer/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/cpuminer/default.nix b/pkgs/tools/misc/cpuminer/default.nix index 64657d7cd3b9..4f7f3d16cb36 100644 --- a/pkgs/tools/misc/cpuminer/default.nix +++ b/pkgs/tools/misc/cpuminer/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, curl, jansson }: +{ stdenv, fetchurl, curl, jansson, perl }: stdenv.mkDerivation rec { name = "cpuminer-${version}"; @@ -9,6 +9,8 @@ stdenv.mkDerivation rec { sha256 = "0xdgz5qlx1yr3mw2h4bwlbj94y6v2ygjy334cnc87xgzxf1wgann"; }; + patchPhase = if stdenv.cc.isClang then "${perl}/bin/perl ./nomacro.pl" else null; + buildInputs = [ curl jansson ]; configureFlags = [ "CFLAGS=-O3" ];