{ stdenv, fetchurl, jdk }: with stdenv.lib; stdenv.mkDerivation rec { name = "picoLisp-${version}"; version = "16.6"; src = fetchurl { url = "http://www.software-lab.de/${name}.tgz"; sha256 = "0y9b4wqpgx0j0igbp4h7k0bw3hvp7dnrhl3fsaagjpp305b003z3"; }; buildInputs = optional stdenv.is64bit jdk; patchPhase = optionalString stdenv.isArm '' sed -i s/-m32//g Makefile cat >>Makefile <"$out/bin/pil" <