depot/pkgs/development/interpreters/kamilalisp/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

39 lines
1.1 KiB
Nix

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