summaryrefslogtreecommitdiff
path: root/notes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'notes.txt')
-rw-r--r--notes.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/notes.txt b/notes.txt
index 02a2bc4..7c14f19 100644
--- a/notes.txt
+++ b/notes.txt
@@ -5,15 +5,17 @@ Be sure to have lots of free RAM; building the Cabal library from source takes r
apt install ghc ghc-libs-static
apt install cabal-install
+I assume you're currently in $HOME/ghc-cabal-build.
+
Check using `dpkg -L ghc-libs-static' which libraries have static libs available
-Copy the .conf files for just those libraries from /data/data/com.termux/files/usr/lib/ghc-8.10.7/package.conf.d/ into a new direcrory, ghc-boot-pkgdb
+Copy the .conf files for just those libraries from /data/data/com.termux/files/usr/lib/ghc-8.10.7/package.conf.d/ into a new directory, ghc-boot-pkgdb
In ghc-boot-pkgdb, run `ghc-pkg recache`
cat >ghc-shim.sh <<EOF
#!/usr/bin/env bash
if [[ $# = 1 && $1 = --print-global-package-db ]]; then
- echo /data/data/com.termux/files/home/ghc-boot-pkgdb
+ echo /data/data/com.termux/files/home/ghc-cabal-build/ghc-boot-pkgdb
else
#echo >/dev/tty "!! ghc $*"
ghc "$@"
@@ -29,7 +31,7 @@ for arg; do
args[${#args[@]}]="$arg"
fi
done
-ghc-pkg --package-db /data/data/com.termux/files/home/ghc-boot-pkgdb "${args[@]}"
+ghc-pkg --package-db /data/data/com.termux/files/home/ghc-cabal-build/ghc-boot-pkgdb "${args[@]}"
EOF
Make a new directory 'cbl', and in that directory: