nixpkgs/pkgs/development/tools/zprint/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildGraalvmNativeImage
, fetchurl
2023-11-23 22:46:02 +03:00
, testers
, zprint
}:
2021-05-24 03:19:29 +03:00
2021-11-23 18:45:57 +03:00
buildGraalvmNativeImage rec {
2021-05-24 03:19:29 +03:00
pname = "zprint";
2024-03-13 13:05:24 +03:00
version = "1.2.9";
2021-05-24 03:19:29 +03:00
src = fetchurl {
2021-11-23 18:45:57 +03:00
url = "https://github.com/kkinnear/${pname}/releases/download/${version}/${pname}-filter-${version}";
2024-03-13 13:05:24 +03:00
sha256 = "sha256-4gSGD7Jiu1mqyPMoQrrPT60EFXs7ySfjpT9wSyhp3ig=";
2021-05-24 03:19:29 +03:00
};
2021-11-23 18:45:57 +03:00
extraNativeImageBuildArgs = [
"--no-server"
"-H:EnableURLProtocols=https,http"
"-H:+ReportExceptionStackTraces"
"--report-unsupported-elements-at-runtime"
"--initialize-at-build-time"
"--no-fallback"
];
2021-05-24 03:19:29 +03:00
2023-11-23 22:46:02 +03:00
passthru.tests.version = testers.testVersion {
inherit version;
package = zprint;
command = "zprint --version";
};
2021-05-24 03:19:29 +03:00
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 ];
2023-08-07 18:08:52 +03:00
mainProgram = "zprint";
2021-05-24 03:19:29 +03:00
};
}