summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-unicode/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/editors/emacs-unicode/builder.sh')
-rw-r--r--pkgs/applications/editors/emacs-unicode/builder.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-unicode/builder.sh b/pkgs/applications/editors/emacs-unicode/builder.sh
new file mode 100644
index 000000000000..46e41f3ef49d
--- /dev/null
+++ b/pkgs/applications/editors/emacs-unicode/builder.sh
@@ -0,0 +1,17 @@
+source $stdenv/setup
+
+myglibc=`cat ${NIX_GCC}/nix-support/orig-libc`
+echo "glibc: $myglibc" 
+
+postConfigure=postConfigure
+postConfigure() {
+  cp $myglibc/lib/crt1.o src
+  cp $myglibc/lib/crti.o src
+  cp $myglibc/lib/crtn.o src
+
+  for i in Makefile ./src/Makefile ./lib-src/Makefile ./leim/Makefile ./admin/unidata/Makefile; do
+      substituteInPlace $i --replace /bin/pwd pwd
+  done
+}
+
+genericBuild