atomicparsley: fix build with llvm 4

This commit is contained in:
Daiderd Jordan 2017-03-21 23:35:54 +01:00
parent 395af825a0
commit 2676d48ff8
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -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";