Merge pull request #245783 from sg-qwt/cljfmt-init

cljfmt: init at 0.11.2

authored by

Peder Bergebakken Sundt and committed by
GitHub
51cd4ff2 de662814

+51
+7
maintainers/maintainer-list.nix
··· 16279 16279 githubId = 75371; 16280 16280 name = "Stig Palmquist"; 16281 16281 }; 16282 + sg-qwt = { 16283 + email = "hello@edgerunners.eu.org"; 16284 + matrix = "@dhl:edgerunners.eu.org"; 16285 + github = "sg-qwt"; 16286 + name = "sg-qwt"; 16287 + githubId = 115715554; 16288 + }; 16282 16289 sgraf = { 16283 16290 email = "sgraf1337@gmail.com"; 16284 16291 github = "sgraf812";
+44
pkgs/by-name/cl/cljfmt/package.nix
··· 1 + { lib 2 + , buildGraalvmNativeImage 3 + , fetchurl 4 + , nix-update-script 5 + , testers 6 + , cljfmt 7 + }: 8 + 9 + buildGraalvmNativeImage rec { 10 + pname = "cljfmt"; 11 + version = "0.11.2"; 12 + 13 + src = fetchurl { 14 + url = "https://github.com/weavejester/${pname}/releases/download/${version}/${pname}-${version}-standalone.jar"; 15 + sha256 = "sha256-vEldQ7qV375mHMn3OUdn0FaPd+f/v9g+C+PuzbSTWtk="; 16 + }; 17 + 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 + ]; 26 + 27 + passthru.updateScript = nix-update-script { }; 28 + 29 + passthru.tests.version = testers.testVersion { 30 + inherit version; 31 + package = cljfmt; 32 + command = "cljfmt --version"; 33 + }; 34 + 35 + meta = with lib; { 36 + mainProgram = "cljfmt"; 37 + description = "A 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 + }; 44 + }