atomicparsley: fix darwin build

+9 -1
+9 -1
pkgs/tools/video/atomicparsley/default.nix
··· 10 10 sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e"; 11 11 }; 12 12 13 - buildInputs = with pkgs; [ unzip ]; 13 + buildInputs = with pkgs; [ unzip ] 14 + ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]; 14 15 patches = [ ./casts.patch ]; 15 16 setSourceRoot = "sourceRoot=${product}-source-${version}"; 16 17 buildPhase = "bash build"; 17 18 installPhase = "install -D AtomicParsley $out/bin/AtomicParsley"; 19 + 20 + postPatch = '' 21 + substituteInPlace build \ 22 + --replace 'g++' 'c++' 23 + substituteInPlace AP_NSImage.mm \ 24 + --replace '_NSBitmapImageFileType' 'NSBitmapImageFileType' 25 + ''; 18 26 19 27 meta = with stdenv.lib; { 20 28 description = ''