Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 7f1b9df99639
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 61e4654814bf
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Dec 28, 2018

  1. 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";
        };
      };
    }
    osmano807 committed Dec 28, 2018
    Copy the full SHA
    3e69bdc View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2018

  1. Merge pull request #53010 from osmano807/patch-1

    picoLisp 16.12 -> 18.12
    infinisil committed Dec 31, 2018
    Copy the full SHA
    61e4654 View commit details
    Browse the repository at this point in the history