File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenvNoCC ,
4+ fetchMavenArtifact ,
5+ jre_minimal ,
6+ } :
7+
8+ stdenvNoCC . mkDerivation ( finalAttrs : {
9+ pname = "jspecify" ;
10+ version = "1.0.0" ;
11+
12+ src = fetchMavenArtifact {
13+ groupId = "org.jspecify" ;
14+ artifactId = "jspecify" ;
15+ version = finalAttrs . version ;
16+ hash = "sha256-H61ua+dVd4Hk0zcp1Jrhzcj92m/kd7sMxozjUer9+6s=" ;
17+ } ;
18+
19+ installPhase = ''
20+ runHook preInstall
21+
22+ install -Dm444 ${ finalAttrs . src . jar } $out/share/java/${ finalAttrs . pname } -${ finalAttrs . version } .jar
23+
24+ runHook postInstall
25+ '' ;
26+
27+ meta = {
28+ homepage = "https://jspecify.dev" ;
29+ description = "Standard Annotations for Java Static Analysis" ;
30+ license = lib . licenses . asl20 ;
31+ sourceProvenance = with lib . sourceTypes ; [ binaryBytecode ] ;
32+ inherit ( jre_minimal . meta ) platforms ;
33+ maintainers = with lib . maintainers ; [ msgilligan ] ;
34+ } ;
35+ } )
You can’t perform that action at this time.
0 commit comments