summaryrefslogtreecommitdiff
path: root/standalone/android/buildchroot-inchroot-asuser
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/android/buildchroot-inchroot-asuser')
-rwxr-xr-xstandalone/android/buildchroot-inchroot-asuser13
1 files changed, 13 insertions, 0 deletions
diff --git a/standalone/android/buildchroot-inchroot-asuser b/standalone/android/buildchroot-inchroot-asuser
new file mode 100755
index 000000000..a4467e66b
--- /dev/null
+++ b/standalone/android/buildchroot-inchroot-asuser
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Runs inside the chroot set up by buildchroot, as the user it creates
+set -e
+
+rm -rf .ghc .cabal
+cabal update
+cabal install happy alex --bindir=$HOME/bin
+PATH=$HOME/bin:$PATH
+export PATH
+git clone https://github.com/joeyh/ghc-android
+cd ghc-android
+git checkout stable-ghc-snapshot
+./build