Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGraalvmNativeImage,
|
|
fetchurl,
|
|
}:
|
|
|
|
buildGraalvmNativeImage (finalAttrs: {
|
|
pname = "yamlscript";
|
|
version = "0.2.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/yaml/yamlscript/releases/download/${finalAttrs.version}/yamlscript.cli-${finalAttrs.version}-standalone.jar";
|
|
hash = "sha256-iNkHdKPrO0dgpvxGiRdvWIhnuh9yKySgYAcVNMUVQcU=";
|
|
};
|
|
|
|
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 = ''
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/ys -e 'say: (+ 1 2)' | fgrep 3
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
meta = {
|
|
description = "Programming in YAML";
|
|
homepage = "https://github.com/yaml/yamlscript";
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
license = lib.licenses.mit;
|
|
mainProgram = "ys";
|
|
maintainers = with lib.maintainers; [ sgo ];
|
|
};
|
|
})
|