aaphoto: fix darwin build

Add the llvm openmp for building.

authored by Stanisław Pitucha and committed by Anderson Torres 4ae95d78 5f2fd25d

+5 -1
+5 -1
pkgs/tools/graphics/aaphoto/default.nix
··· 5 , libpng 6 , libjpeg 7 , zlib 8 }: 9 10 stdenv.mkDerivation rec { ··· 15 url = "http://log69.com/downloads/aaphoto_sources_${version}.tar.gz"; 16 sha256 = "sha256-06koJM7jNVFqVgqg6BmOZ74foqk6yjUIFnwULzPZ4go="; 17 }; 18 19 buildInputs = [ 20 jasper ··· 43 license = licenses.gpl3Plus; 44 maintainers = with maintainers; [ AndersonTorres ]; 45 platforms = platforms.unix; 46 - broken = stdenv.isDarwin; # aaphoto.c:237:10: fatal error: 'omp.h' file not found 47 }; 48 }
··· 5 , libpng 6 , libjpeg 7 , zlib 8 + , llvmPackages 9 }: 10 11 stdenv.mkDerivation rec { ··· 16 url = "http://log69.com/downloads/aaphoto_sources_${version}.tar.gz"; 17 sha256 = "sha256-06koJM7jNVFqVgqg6BmOZ74foqk6yjUIFnwULzPZ4go="; 18 }; 19 + 20 + nativeBuildInputs = lib.optionals stdenv.cc.isClang [ 21 + llvmPackages.openmp 22 + ]; 23 24 buildInputs = [ 25 jasper ··· 48 license = licenses.gpl3Plus; 49 maintainers = with maintainers; [ AndersonTorres ]; 50 platforms = platforms.unix; 51 }; 52 }