chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ya / yamlscript / package.nix
blob2bdc0ed09ebd1b848ae6cbd9722f0c8f51289e06
1 { lib, buildGraalvmNativeImage, fetchurl }:
3 buildGraalvmNativeImage rec {
4   pname = "yamlscript";
5   version = "0.1.79";
7   src = fetchurl {
8     url = "https://github.com/yaml/yamlscript/releases/download/${version}/yamlscript.cli-${version}-standalone.jar";
9     hash = "sha256-Jx3mnAgsTi/5nqcy6DVYPoM4GlQJf+10uuQzhUWp5ZU=";
10   };
12   executable = "ys";
14   extraNativeImageBuildArgs = [
15     "--native-image-info"
16     "--no-fallback"
17     "--initialize-at-build-time"
18     "--enable-preview"
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"
24   ];
26   doInstallCheck = true;
28   installCheckPhase = ''
29     $out/bin/ys  -e 'say: (+ 1 2)' | fgrep 3
30   '';
32   meta = with lib; {
33     description = "Programming in YAML";
34     homepage = "https://github.com/yaml/yamlscript";
35     sourceProvenance = with sourceTypes; [ binaryBytecode ];
36     license = licenses.mit;
37     mainProgram = "ys";
38     maintainers = with maintainers; [ sgo ];
39   };