{ stdenv, fetchurl, jdk }: with stdenv.lib; stdenv.mkDerivation rec { name = "picoLisp-${version}"; version = "3.1.11"; src = fetchurl { url = "http://www.software-lab.de/${name}.tgz"; sha256 = "01kgyz0lkz36lxvibv07qd06gwdxvvbain9f9cnya7a12kq3009i"; }; buildInputs = if stdenv.is64bit then [ jdk ] else []; patchPhase = if stdenv.isArm then '' sed -i s/-m32//g Makefile cat >>Makefile <"$out/bin/pil" <