{ stdenv, fetchurl, jdk }: with stdenv.lib; stdenv.mkDerivation rec { name = "picoLisp-${version}"; version = "3.1.10"; src = fetchurl { url = "http://www.software-lab.de/${name}.tgz"; sha256 = "1pn5c0d81rz1fazsdijhw4cqybaad2wn6qramdj2qqkzxa3vvll1"; }; buildInputs = [ jdk ]; sourceRoot = ''picoLisp/src${optionalString stdenv.is64bit "64"}''; installPhase = '' cd .. mkdir -p "$out/share/picolisp" "$out/lib" "$out/bin" cp -r . "$out/share/picolisp/build-dir" ln -s "$out/share/picolisp/build-dir" "$out/lib/picolisp" ln -s "$out/lib/picolisp/bin/picolisp" "$out/bin/picolisp" cat >"$out/bin/pil" <