diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2016-08-10 22:42:51 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2016-08-10 22:42:51 -0500 |
commit | 0a1cb79908aabb8c9f8a404e8d7a0133a3861592 (patch) | |
tree | de8066223df55655eb41437380a2964a6ac544d0 /pkgs/tools/video/atomicparsley | |
parent | 93d0d6f25fa86696f80cf36c18646ed2df7e25d2 (diff) |
atomicparsley: fix darwin build
Diffstat (limited to 'pkgs/tools/video/atomicparsley')
-rw-r--r-- | pkgs/tools/video/atomicparsley/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/video/atomicparsley/default.nix b/pkgs/tools/video/atomicparsley/default.nix index d32d125ccd58d..bb44fe044e815 100644 --- a/pkgs/tools/video/atomicparsley/default.nix +++ b/pkgs/tools/video/atomicparsley/default.nix @@ -10,12 +10,20 @@ stdenv.mkDerivation rec { sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e"; }; - buildInputs = with pkgs; [ unzip ]; + buildInputs = with pkgs; [ unzip ] + ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]; patches = [ ./casts.patch ]; setSourceRoot = "sourceRoot=${product}-source-${version}"; buildPhase = "bash build"; installPhase = "install -D AtomicParsley $out/bin/AtomicParsley"; + postPatch = '' + substituteInPlace build \ + --replace 'g++' 'c++' + substituteInPlace AP_NSImage.mm \ + --replace '_NSBitmapImageFileType' 'NSBitmapImageFileType' + ''; + meta = with stdenv.lib; { description = '' A lightweight command line program for reading, parsing and |