diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2017-03-21 23:35:54 +0100 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2017-03-21 23:35:54 +0100 |
commit | 2676d48ff8e7cd908d02a3b6668d8914c1d2b238 (patch) | |
tree | 31235540ad60c137f694c2b0aa6a7b6f42d09a4a /pkgs | |
parent | 395af825a01e0227e5a2b74246722eb0a93949c2 (diff) |
atomicparsley: fix build with llvm 4
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/video/atomicparsley/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/tools/video/atomicparsley/default.nix b/pkgs/tools/video/atomicparsley/default.nix index 835cacf0098c..b2eb53666181 100644 --- a/pkgs/tools/video/atomicparsley/default.nix +++ b/pkgs/tools/video/atomicparsley/default.nix @@ -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"; |