pass IOS devine via GHC options in flake.nix (#322)

This commit is contained in:
Evgeny Poberezkin 2022-02-17 08:40:08 +00:00 committed by GitHub
parent 7fafb25821
commit f74f932dcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -121,7 +121,7 @@
# we need threaded here, otherwise all the queing logic doesn't work properly.
# for iOS we also use -staticlib, to get one rolled up library.
# still needs mac2ios patching of the archives.
ghcOptions = [ "-staticlib" "-threaded" ];
ghcOptions = [ "-staticlib" "-threaded" "-DIOS" ];
postInstall = ''
${pkgs.tree}/bin/tree $out
mkdir -p $out/_pkg
@ -148,7 +148,7 @@
# we need threaded here, otherwise all the queing logic doesn't work properly.
# for iOS we also use -staticlib, to get one rolled up library.
# still needs mac2ios patching of the archives.
ghcOptions = [ "-staticlib" "-threaded" ];
ghcOptions = [ "-staticlib" "-threaded" "-DIOS" ];
postInstall = ''
${pkgs.tree}/bin/tree $out
mkdir -p $out/_pkg

View file

@ -16,9 +16,6 @@ license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
if (os(darwin))
ghc-option: -DIOS
library
exposed-modules: