From 87b4e2b3585a9579d4e93d84a94992c5cec6e322 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 16 Jul 2022 23:12:12 +0200 Subject: better pwd management --- notes.txt | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'notes.txt') diff --git a/notes.txt b/notes.txt index 7c14f19..0b9921e 100644 --- a/notes.txt +++ b/notes.txt @@ -8,41 +8,14 @@ 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 directory, 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 in the root of this repository, called ghc-boot-pkgdb In ghc-boot-pkgdb, run `ghc-pkg recache` -cat >ghc-shim.sh </dev/tty "!! ghc $*" - ghc "$@" -fi -EOF - -cat >ghc-pkg-shim.sh </dev/tty "!! ghc-pkg $*" -args=() -for arg; do - if [[ $arg != --global ]]; then - args[${#args[@]}]="$arg" - fi -done -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: +In the directory 'cbl': cabal get resolv cabal get cabal-install -cat >cabal.project <