picolisp: compile on arm and i686
This commit is contained in:
parent
5ecdc8f3c6
commit
411d83d5fe
1 changed files with 11 additions and 1 deletions
|
@ -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 ..
|
||||
|
|
Loading…
Reference in a new issue