Skip to content

Commit ced38cb

Browse files
authored
cljstyle: init at 0.17.642 (#381461)
2 parents 123777e + 4f2c2da commit ced38cb

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19879,6 +19879,12 @@
1987919879
githubId = 20524473;
1988019880
name = "Psyanticy";
1988119881
};
19882+
psyclyx = {
19883+
email = "[email protected]";
19884+
github = "psyclyx";
19885+
githubId = 176348922;
19886+
name = "psyclyx";
19887+
};
1988219888
psydvl = {
1988319889
email = "[email protected]";
1988419890
github = "psydvl";
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
lib,
3+
buildGraalvmNativeImage,
4+
fetchMavenArtifact,
5+
fetchurl,
6+
graalvmPackages,
7+
versionCheckHook,
8+
}:
9+
10+
let
11+
pname = "cljstyle";
12+
version = "0.17.642";
13+
14+
# must be on classpath to build native image
15+
graal-build-time = fetchMavenArtifact {
16+
repos = [ "https://repo.clojars.org/" ];
17+
groupId = "com.github.clj-easy";
18+
artifactId = "graal-build-time";
19+
version = "1.0.5";
20+
hash = "sha256-M6/U27a5n/QGuUzGmo8KphVnNa2K+LFajP5coZiFXoY=";
21+
};
22+
in
23+
buildGraalvmNativeImage {
24+
inherit pname version;
25+
26+
src = fetchurl {
27+
url = "https://github.com/greglook/${pname}/releases/download/${version}/${pname}-${version}.jar";
28+
hash = "sha256-AkCuTZeDXbNBuwPZEMhYGF/oOGIKq5zVDwL8xwnj+mE=";
29+
};
30+
31+
graalvmDrv = graalvmPackages.graalvm-ce;
32+
33+
extraNativeImageBuildArgs = [
34+
"-H:+ReportExceptionStackTraces"
35+
"--no-fallback"
36+
"-cp ${graal-build-time.passthru.jar}"
37+
];
38+
39+
doInstallCheck = true;
40+
nativeInstallCheckInputs = [ versionCheckHook ];
41+
versionCheckProgramArg = [ "version" ];
42+
43+
meta = {
44+
description = "Tool for formatting Clojure code";
45+
homepage = "https://github.com/greglook/cljstyle";
46+
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
47+
license = lib.licenses.epl10;
48+
changelog = "https://github.com/greglook/cljstyle/blob/${version}/CHANGELOG.md";
49+
maintainers = with lib.maintainers; [ psyclyx ];
50+
mainProgram = "cljstyle";
51+
};
52+
}

0 commit comments

Comments
 (0)