depot/third_party/nixpkgs/pkgs/development/tools/zprint/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

32 lines
1 KiB
Nix

{ lib, buildGraalvmNativeImage, fetchurl }:
buildGraalvmNativeImage rec {
pname = "zprint";
version = "1.2.2";
src = fetchurl {
url = "https://github.com/kkinnear/${pname}/releases/download/${version}/${pname}-filter-${version}";
sha256 = "sha256-CaugPTfEGC0IFgYUSHcE3nsnrP5DSXS1becXChbPggQ=";
};
extraNativeImageBuildArgs = [
"--no-server"
"-H:EnableURLProtocols=https,http"
"-H:+ReportExceptionStackTraces"
"--report-unsupported-elements-at-runtime"
"--initialize-at-build-time"
"--no-fallback"
];
meta = with lib; {
description = "Clojure/EDN source code formatter and pretty printer";
longDescription = ''
Library and command line tool providing a variety of pretty printing capabilities
for both Clojure code and Clojure/EDN structures. It can meet almost anyone's needs.
As such, it supports a number of major source code formatting approaches
'';
homepage = "https://github.com/kkinnear/zprint";
license = licenses.mit;
maintainers = with maintainers; [ stelcodes ];
};
}