nixpkgs/pkgs/development/interpreters
Joaquim Pedro França Simão 3e69bdcc94
picoLisp 16.12 -> 18.12
{ stdenv, fetchurl, jdk, makeWrapper }:
with stdenv.lib;

stdenv.mkDerivation rec {
  name = "picoLisp-${version}";
  version = "18.12";
  src = fetchurl {
    url = "https://www.software-lab.de/${name}.tgz";
    sha256 = "0hvgq2vc03bki528jqn95xmvv7mw8xx832spfczhxc16wwbrnrhk";
  };
  buildInputs = [makeWrapper] ++ optional stdenv.is64bit jdk;
  patchPhase = ''
    sed -i "s/which java/command -v java/g" mkAsm

    ${optionalString stdenv.isAarch32 ''
      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
    ''}
  '';
  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"


    makeWrapper $out/bin/picolisp $out/bin/pil \
      --add-flags "$out/lib/picolisp/lib.l" \
      --add-flags "@lib/misc.l" \
      --add-flags "@lib/btree.l" \
      --add-flags "@lib/db.l" \
      --add-flags "@lib/pilog.l"

    mkdir -p "$out/share/emacs"
    ln -s "$out/lib/picolisp/lib/el" "$out/share/emacs/site-lisp"
  '';

  meta = {
    description = "A simple Lisp with an integrated database";
    homepage = https://picolisp.com/;
    license = licenses.mit;
    platforms = platforms.all;
    broken = stdenv.isDarwin; # times out
    maintainers = with maintainers; [ raskin tohl ];
  };

  passthru = {
    updateInfo = {
      downloadPage = "http://www.software-lab.de/down.html";
    };
  };
}
2018-12-28 11:30:57 -03:00
..
acl2 acl2: 8.1.post.2018.09.20 -> 8.1; turns out there is a release 2018-09-21 19:09:47 +03:00
angelscript angelscript_2_22: Disables build on aarch64-linux. 2018-12-10 14:55:19 -05:00
bats bats: add missing grep dependency 2018-10-27 15:43:09 +02:00
ceptre
chibi chibi: 0.7.3 -> 0.8 2018-07-18 15:56:04 -07:00
clips
clisp clisp: Mark as broken for aarch64 2018-10-14 14:41:40 +02:00
clojure clojure: add $out/bin to wrapper PATH 2018-12-22 02:41:42 +01:00
clojurescript/lumo Fix tarball builds 2018-11-13 14:48:15 -05:00
dart dart: 1.24.3 -> 2.0.0 (#46533) 2018-09-30 23:44:06 +02:00
dhall
duktape duktape: 2.2.1 -> 2.3.0 2018-08-06 13:15:50 +02:00
eff eff: 20140928 -> 5.0 (#39264) 2018-04-23 08:16:03 +01:00
elixir elixir: 1.7.3 -> 1.7.4 2018-10-25 15:55:15 +02:00
erlang erlangR21: 21.1.3 -> 21.2 2018-12-11 21:14:40 +01:00
falcon
gauche gauche: 0.9.6 -> 0.9.7 2018-12-26 10:36:30 +01:00
gnu-apl Treewide: use HTTPS on GNU domains 2018-12-02 15:51:59 +01:00
groovy groovy: 2.5.3 -> 2.5.4 2018-11-19 08:48:30 -08:00
gtk-server
guile Treewide: use HTTPS on GNU domains 2018-12-02 15:51:59 +01:00
hugs Revert "hugs: broken on clang" 2018-12-02 16:46:31 -05:00
hy hy: 0.14.0 -> 0.15.0 (#49428) 2018-10-30 01:07:07 +01:00
icon-lang
io
j j: 808 -> 807 2018-10-03 19:59:23 +02:00
jimtcl jimtcl: 0.77 -> 0.78 (#44762) 2018-08-13 14:24:25 +02:00
joker joker: 0.9.7 -> 0.10.1 2018-11-08 20:19:06 -02:00
jruby jruby: 9.2.4.0 -> 9.2.5.0 2018-12-15 07:35:40 -08:00
jython
kona
lfe
lolcode
love love_11: fix hash 2018-12-17 17:15:28 +01:00
lua-5 lua: 5.2.3 -> 5.2.4 (#47126) 2018-09-22 19:09:33 +02:00
luajit pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
lush Treewide: use HTTPS on SourceForge 2018-12-02 15:33:08 +01:00
maude flex_2_5_35: replace with flex 2.6.4 in coprthr, gradm, maude, scotch 2018-11-13 03:40:53 +00:00
metamath metamath: 0.167 -> 0.168 2018-12-11 09:10:06 +00:00
mujs
nix-exec
octave octave: 4.2.2 -> 4.4.1 (#47391) 2018-09-28 11:34:56 +02:00
perl perldevel: 5.29.3 -> 5.29.4 (#49624) 2018-11-02 03:10:11 +01:00
php php: add option config.php.xmlrpc 2018-12-14 10:56:46 +03:00
picoc
picolisp picoLisp 16.12 -> 18.12 2018-12-28 11:30:57 -03:00
pixie
proglodyte-wasm wasm: rename unofficial package into proglodyte-wasm 2018-08-13 11:53:20 +09:00
pure pure: 0.66 -> 0.68 2018-04-20 17:57:33 -05:00
pyrex pyrex: fix evaluation 2018-08-06 13:28:07 +02:00
python python37: fix darwin build 2018-12-27 09:27:59 +01:00
qnial qnial: update homepage 2018-09-02 01:46:28 +02:00
racket Merge remote-tracking branch 'upstream/master' into racket-full-darwin 2018-11-16 15:41:48 +08:00
rakudo treewide: http -> https (#42665) 2018-06-27 22:12:57 +02:00
rascal treewide: http -> https sources (#42676) 2018-06-28 20:43:35 +02:00
rebol pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
red treewide: http -> https (#42665) 2018-06-27 22:12:57 +02:00
regina Treewide: use HTTPS on SourceForge 2018-12-02 15:33:08 +01:00
renpy renpy: 7.1.1 -> 7.1.3 2018-12-14 04:00:34 -08:00
ruby ruby_2_6: init at 2.6.0 2018-12-26 09:32:24 -05:00
scheme48 scheme48: add license 2018-08-04 18:53:53 +02:00
scsh treewide: Make more complicated configureFlags lists 2018-08-03 17:06:03 -04:00
self pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
spidermonkey spidermonkey_38: 38.2.1.rc0 -> 38.8.0 2018-12-16 16:53:34 +01:00
supercollider supercollider: build with alsa (midi) support on non-darwin 2018-10-31 23:16:53 +02:00
tcl pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
unicon-lang pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
wasm-gc wasm-gc: init at 0.1.6 2018-09-23 22:33:09 +09:00