atomicparsley: fix darwin build

+9 -1
+9 -1
pkgs/tools/video/atomicparsley/default.nix
··· 10 sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e"; 11 }; 12 13 - buildInputs = with pkgs; [ unzip ]; 14 patches = [ ./casts.patch ]; 15 setSourceRoot = "sourceRoot=${product}-source-${version}"; 16 buildPhase = "bash build"; 17 installPhase = "install -D AtomicParsley $out/bin/AtomicParsley"; 18 19 meta = with stdenv.lib; { 20 description = ''
··· 10 sha256 = "de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e"; 11 }; 12 13 + buildInputs = with pkgs; [ unzip ] 14 + ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]; 15 patches = [ ./casts.patch ]; 16 setSourceRoot = "sourceRoot=${product}-source-${version}"; 17 buildPhase = "bash build"; 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 + ''; 26 27 meta = with stdenv.lib; { 28 description = ''