3
0
Fork 0
forked from mirrors/nixpkgs

aaphoto: fix darwin build

Add the llvm openmp for building.
This commit is contained in:
Stanisław Pitucha 2023-03-25 15:16:36 +11:00 committed by Anderson Torres
parent 5f2fd25d2e
commit 4ae95d7842

View file

@ -5,6 +5,7 @@
, libpng
, libjpeg
, zlib
, llvmPackages
}:
stdenv.mkDerivation rec {
@ -16,6 +17,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-06koJM7jNVFqVgqg6BmOZ74foqk6yjUIFnwULzPZ4go=";
};
nativeBuildInputs = lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
];
buildInputs = [
jasper
libpng
@ -43,6 +48,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
broken = stdenv.isDarwin; # aaphoto.c:237:10: fatal error: 'omp.h' file not found
};
}