atomicparsley: fix build with llvm 4
This commit is contained in:
parent
395af825a0
commit
2676d48ff8
@ -1,4 +1,4 @@
|
||||
{ stdenv, pkgs, fetchurl }:
|
||||
{ stdenv, fetchurl, unzip, darwin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "atomicparsley-${version}";
|
||||
@ -10,10 +10,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e";
|
||||
};
|
||||
|
||||
buildInputs = with pkgs; [ unzip ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
|
||||
patches = [ ./casts.patch ];
|
||||
patches = stdenv.lib.optional (!stdenv.cc.isClang) ./casts.patch;
|
||||
|
||||
buildInputs = [ unzip ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
|
||||
|
||||
setSourceRoot = "sourceRoot=${product}-source-${version}";
|
||||
|
||||
buildPhase = "bash build";
|
||||
installPhase = "install -D AtomicParsley $out/bin/AtomicParsley";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user