imagelol: fix darwin build

Set older standard, otherwise clang's default fails to compile it.
This commit is contained in:
Stanisław Pitucha 2024-04-22 20:58:31 +10:00
parent 8e54038847
commit f730844b29
1 changed files with 1 additions and 2 deletions

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";