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
+1 -2
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";