File tree Expand file tree Collapse file tree 2 files changed +291
-0
lines changed
pkgs/by-name/ja/java-hamcrest Expand file tree Collapse file tree 2 files changed +291
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ stdenvNoCC ,
3+ fetchFromGitHub ,
4+ gradle ,
5+ jdk ,
6+ lib ,
7+ } :
8+ stdenvNoCC . mkDerivation ( finalAttrs : {
9+ pname = "java-hamcrest" ;
10+ version = "3.0" ;
11+
12+ nativeBuildInputs = [ gradle ] ;
13+
14+ src = fetchFromGitHub {
15+ owner = "hamcrest" ;
16+ repo = "JavaHamcrest" ;
17+ tag = "v${ finalAttrs . version } " ;
18+ hash = "sha256-ntae6XWpD0wEs36YoPsfTl6cSR6ULl6dAJ5oZsV+ih0=" ;
19+ } ;
20+
21+ mitmCache = gradle . fetchDeps {
22+ inherit ( finalAttrs ) pname ;
23+ data = ./deps.json ;
24+ } ;
25+
26+ installPhase = ''
27+ runHook preInstall
28+
29+ mkdir -p "$out/share/java"
30+ cp hamcrest/build/libs/*.jar "$out/share/java"
31+
32+ runHook postInstall
33+ '' ;
34+
35+ meta = {
36+ homepage = "https://hamcrest.org/JavaHamcrest/" ;
37+ description = "Java library containing matchers that can be combined to create flexible expressions of intent" ;
38+ platforms = jdk . meta . platforms ;
39+ license = lib . licenses . bsd3 ;
40+ maintainers = with lib . maintainers ; [ tomodachi94 ] ;
41+ } ;
42+ } )
You can’t perform that action at this time.
0 commit comments