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

This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2022-02-17 08:40:08 +00:00
1 parent 7fafb25821
commit f74f932dcd
2 files changed
+2 -5

No files matched your search

+2 -2
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
-3
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: