about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc-6.6/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/ghc-6.6/builder.sh')
-rw-r--r--pkgs/development/compilers/ghc-6.6/builder.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc-6.6/builder.sh b/pkgs/development/compilers/ghc-6.6/builder.sh
new file mode 100644
index 000000000000..716fb38f0dad
--- /dev/null
+++ b/pkgs/development/compilers/ghc-6.6/builder.sh
@@ -0,0 +1,15 @@
+source $stdenv/setup
+
+# Setup isolated package management
+postInstall()
+{
+    ensureDir "$out/nix-support"
+    echo "# Path to the GHC compiler directory in the store" > $out/nix-support/setup-hook
+    echo "ghc=$out" >> $out/nix-support/setup-hook
+    echo ""         >> $out/nix-support/setup-hook
+    cat $setupHook  >> $out/nix-support/setup-hook
+}
+postInstall=postInstall
+
+# Standard configure/make/make install
+genericBuild