yamlscript: refactor to finalAttrs style
This commit is contained in:
committed by
Benjamin Sparks
parent
49b7a8f17f
commit
ac0bbfc543
@@ -4,17 +4,15 @@
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
buildGraalvmNativeImage rec {
|
||||
buildGraalvmNativeImage (finalAttrs: {
|
||||
pname = "yamlscript";
|
||||
version = "0.1.96";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/yaml/yamlscript/releases/download/${version}/yamlscript.cli-${version}-standalone.jar";
|
||||
url = "https://github.com/yaml/yamlscript/releases/download/${finalAttrs.version}/yamlscript.cli-${finalAttrs.version}-standalone.jar";
|
||||
hash = "sha256-nwqZhGOtNEJ0qzOTFdHFWBSyt4hmLhn6nhdCz2jyUbg=";
|
||||
};
|
||||
|
||||
executable = "ys";
|
||||
|
||||
extraNativeImageBuildArgs = [
|
||||
"--native-image-info"
|
||||
"--no-fallback"
|
||||
@@ -30,15 +28,19 @@ buildGraalvmNativeImage rec {
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
$out/bin/ys -e 'say: (+ 1 2)' | fgrep 3
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/ys -e 'say: (+ 1 2)' | fgrep 3
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Programming in YAML";
|
||||
homepage = "https://github.com/yaml/yamlscript";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.mit;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "ys";
|
||||
maintainers = with maintainers; [ sgo ];
|
||||
maintainers = with lib.maintainers; [ sgo ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user