bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ lib, buildGraalvmNativeImage, fetchurl }:
|
|
|
|
buildGraalvmNativeImage rec {
|
|
pname = "yamlscript";
|
|
version = "0.1.61";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/yaml/yamlscript/releases/download/${version}/yamlscript.cli-${version}-standalone.jar";
|
|
hash = "sha256-NuZxIuj7N7zKBOaBPn8g/cKoRmNMkpH75YMHBjFFM8g=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|