imagelol: fix darwin build
This commit is contained in:
parent
53e0f6daf2
commit
bd7796dfcd
1 changed files with 11 additions and 0 deletions
|
@ -12,8 +12,19 @@ stdenv.mkDerivation rec {
|
|||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
# fix for case-sensitive filesystems
|
||||
# https://github.com/MCredstoner2004/ImageLOL/issues/1
|
||||
postPatch = ''
|
||||
mv ImageLOL src
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'add_subdirectory("imagelol")' 'add_subdirectory("src")'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
# error: 'path' is unavailable: introduced in macOS 10.15
|
||||
CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-D_LIBCPP_DISABLE_AVAILABILITY";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ./ImageLOL $out/bin
|
||||
|
|
Loading…
Reference in a new issue