mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
cpuminer: fix darwin build
This commit is contained in:
parent
4ba0912a92
commit
363381f3c2
1 changed files with 3 additions and 1 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue