2024-04-21 15:54:59 +00:00
|
|
|
{ lib, buildGraalvmNativeImage, fetchurl }:
|
|
|
|
|
|
|
|
buildGraalvmNativeImage rec {
|
|
|
|
pname = "yamlscript";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.1.66";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/yaml/yamlscript/releases/download/${version}/yamlscript.cli-${version}-standalone.jar";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-FsSMH4kdfMjWe3sMsCkdTf5bhYX0abqGOQvNdHYBu80=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
executable = "ys";
|
|
|
|
|
|
|
|
extraNativeImageBuildArgs = [
|
|
|
|
"--native-image-info"
|
|
|
|
"--no-fallback"
|
|
|
|
"--initialize-at-build-time"
|
|
|
|
"--enable-preview"
|
|
|
|
"-H:+ReportExceptionStackTraces"
|
|
|
|
"-H:IncludeResources=SCI_VERSION"
|
|
|
|
"-H:Log=registerResource:"
|
|
|
|
"-J-Dclojure.spec.skip-macros=true"
|
|
|
|
"-J-Dclojure.compiler.direct-linking=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/ys -e 'say: (+ 1 2)' | fgrep 3
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Programming in YAML";
|
|
|
|
homepage = "https://github.com/yaml/yamlscript";
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "ys";
|
|
|
|
maintainers = with maintainers; [ sgo ];
|
|
|
|
};
|
|
|
|
}
|