3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/kamilalisp/default.nix
Christina Sørensen 447099ec5d kamilalisp: init at 0.2
A functional, flexible and concise Lisp inspired by Haskell and APL,
among others. A ground-up rewrite.

Release notes:
https://github.com/kspalaiologos/kamilalisp/releases/tag/v0.2o
2023-06-14 12:20:38 +00:00

39 lines
1 KiB
Nix

{ lib
, stdenv
, fetchurl
, jre
, makeWrapper
}:
stdenv.mkDerivation rec {
name = "kamilalisp";
version = "0.2";
src = fetchurl {
url = "https://github.com/kspalaiologos/kamilalisp/releases/download/v${version}o/kamilalisp-${version}.jar";
hash = "sha256-NkRkLcJpar9iHEI+OmgpkYwkwVvU1J7izeBdytwIsdU=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -pv $out/share/java $out/bin
cp ${src} $out/share/java/${name}-${version}.jar
makeWrapper ${jre}/bin/java $out/bin/kamilalisp \
--add-flags "-jar $out/share/java/${name}-${version}.jar" \
--set _JAVA_OPTIONS '-Dawt.useSystemAAFontSettings=on' \
--set _JAVA_AWT_WM_NONREPARENTING 1
'';
meta = {
homepage = "https://github.com/kspalaiologos/kamilalisp";
description = "A functional, flexible, and concise Lisp";
license = lib.licenses.gpl3Plus;
inherit (jre.meta) platforms;
maintainers = with lib.maintainers; [ cafkafk ];
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
};
}