biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / cl / cljfmt / package.nix
blob2005215f8fc42e3e7251465e18aad529b995d700
1 { lib
2 , buildGraalvmNativeImage
3 , fetchurl
4 , nix-update-script
5 , testers
6 , cljfmt
7 }:
9 buildGraalvmNativeImage rec {
10   pname = "cljfmt";
11   version = "0.13.0";
13   src = fetchurl {
14     url = "https://github.com/weavejester/cljfmt/releases/download/${version}/cljfmt-${version}-standalone.jar";
15     hash = "sha256-gPIDaFb8mmJyoAIOUWV7ZNNi/rSnuRkYN16Grqly0/c=";
16   };
18   extraNativeImageBuildArgs = [
19     "-H:+ReportExceptionStackTraces"
20     "-H:Log=registerResource:"
21     "--initialize-at-build-time"
22     "--diagnostics-mode"
23     "--report-unsupported-elements-at-runtime"
24     "--no-fallback"
25   ];
27   passthru.updateScript = nix-update-script { };
29   passthru.tests.version = testers.testVersion {
30     inherit version;
31     package = cljfmt;
32     command = "cljfmt --version";
33   };
35   meta = with lib; {
36     mainProgram = "cljfmt";
37     description = "Tool for formatting Clojure code";
38     homepage = "https://github.com/weavejester/cljfmt";
39     sourceProvenance = with sourceTypes; [ binaryBytecode ];
40     license = licenses.epl10;
41     changelog = "https://github.com/weavejester/cljfmt/blob/${version}/CHANGELOG.md";
42     maintainers = with maintainers; [ sg-qwt ];
43   };