1 { lib, buildGraalvmNativeImage, fetchurl }:
3 buildGraalvmNativeImage rec {
8 url = "https://github.com/yaml/yamlscript/releases/download/${version}/yamlscript.cli-${version}-standalone.jar";
9 hash = "sha256-Jx3mnAgsTi/5nqcy6DVYPoM4GlQJf+10uuQzhUWp5ZU=";
14 extraNativeImageBuildArgs = [
17 "--initialize-at-build-time"
19 "-H:+ReportExceptionStackTraces"
20 "-H:IncludeResources=SCI_VERSION"
21 "-H:Log=registerResource:"
22 "-J-Dclojure.spec.skip-macros=true"
23 "-J-Dclojure.compiler.direct-linking=true"
26 doInstallCheck = true;
28 installCheckPhase = ''
29 $out/bin/ys -e 'say: (+ 1 2)' | fgrep 3
33 description = "Programming in YAML";
34 homepage = "https://github.com/yaml/yamlscript";
35 sourceProvenance = with sourceTypes; [ binaryBytecode ];
36 license = licenses.mit;
38 maintainers = with maintainers; [ sgo ];