Merge pull request #305972 from viraptor/imagelol-darwin

imagelol: fix darwin build
This commit is contained in:
Stanisław Pitucha 2024-04-26 09:05:54 +10:00 committed by GitHub
commit 19196d6f99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,6 @@ stdenv.mkDerivation rec {
})
];
# fix for case-sensitive filesystems
# https://github.com/MCredstoner2004/ImageLOL/issues/1
postPatch = ''
@ -46,7 +45,7 @@ stdenv.mkDerivation rec {
cp ./ImageLOL $out/bin
'';
cmakeFlags = lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DPNG_ARM_NEON=off";
cmakeFlags = [ (lib.cmakeFeature "CMAKE_C_FLAGS" "-std=gnu90") ] ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DPNG_ARM_NEON=off";
meta = with lib; {
homepage = "https://github.com/MCredstoner2004/ImageLOL";