File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1987919879 githubId = 20524473;
1988019880 name = "Psyanticy";
1988119881 };
19882+ psyclyx = {
19883+ 19884+ github = "psyclyx";
19885+ githubId = 176348922;
19886+ name = "psyclyx";
19887+ };
1988219888 psydvl = {
19883198891988419890 github = "psydvl";
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments