picolisp: compile on arm and i686

This commit is contained in:
Tomas Hlavaty 2015-09-27 22:36:58 +02:00
parent 5ecdc8f3c6
commit 411d83d5fe

View file

@ -8,7 +8,17 @@ stdenv.mkDerivation rec {
url = "http://www.software-lab.de/${name}.tgz";
sha256 = "01kgyz0lkz36lxvibv07qd06gwdxvvbain9f9cnya7a12kq3009i";
};
buildInputs = [ jdk ];
buildInputs = if stdenv.is64bit then [ jdk ] else [];
patchPhase = if stdenv.isArm then ''
sed -i s/-m32//g Makefile
cat >>Makefile <<EOF
ext.o: ext.c
\$(CC) \$(CFLAGS) -fPIC -D_OS='"\$(OS)"' \$*.c
ht.o: ht.c
\$(CC) \$(CFLAGS) -fPIC -D_OS='"\$(OS)"' \$*.c
EOF
''
else "";
sourceRoot = ''picoLisp/src${optionalString stdenv.is64bit "64"}'';
installPhase = ''
cd ..