# Getting a statically-linked cabal-install in termux Be sure to have lots of free RAM; building the Cabal library from source takes roughly 4.5GiB at peak. Force stop apps if needed. 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 directory in the root of this repository, called ghc-boot-pkgdb In ghc-boot-pkgdb, run `ghc-pkg recache` In the directory 'cbl': cabal get resolv cabal get cabal-install cd resolv-0.1.2.0 patch -p1 <