2021-02-22 22:45:26 +01:00
|
|
|
{ lib
|
|
|
|
, pkgs
|
|
|
|
, mavenbuild
|
|
|
|
, maven
|
|
|
|
, jdk8
|
|
|
|
}:
|
2016-10-31 14:38:28 +01:00
|
|
|
|
|
|
|
with pkgs.javaPackages;
|
|
|
|
|
2016-11-15 20:18:19 +01:00
|
|
|
let
|
|
|
|
poms = import ../poms.nix { inherit fetchMaven; };
|
2021-02-22 22:45:26 +01:00
|
|
|
mavenbuild-jdk8 = mavenbuild.override {
|
|
|
|
maven = maven.override {
|
|
|
|
jdk = jdk8;
|
|
|
|
};
|
|
|
|
};
|
2016-11-15 20:18:19 +01:00
|
|
|
in rec {
|
2021-02-22 22:45:26 +01:00
|
|
|
mavenHelloRec = { mavenDeps, mavenbuild, sha512, version, skipTests ? true, quiet ? true }: mavenbuild {
|
2016-11-15 20:18:19 +01:00
|
|
|
inherit mavenDeps sha512 version skipTests quiet;
|
2016-10-31 14:38:28 +01:00
|
|
|
|
|
|
|
name = "maven-hello-${version}";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
inherit sha512;
|
|
|
|
owner = "NeQuissimus";
|
|
|
|
repo = "maven-hello";
|
|
|
|
rev = "v${version}";
|
|
|
|
};
|
|
|
|
m2Path = "/com/nequissimus/maven-hello/${version}";
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/NeQuissimus/maven-hello/";
|
2016-10-31 14:38:28 +01:00
|
|
|
description = "Maven Hello World";
|
2021-01-23 18:15:07 +01:00
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers;
|
2016-10-31 14:38:28 +01:00
|
|
|
[ nequissimus ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
mavenHello_1_0 = mavenHelloRec {
|
|
|
|
mavenDeps = [];
|
|
|
|
sha512 = "3kv5z1i02wfb0l5x3phbsk3qb3wky05sqn4v3y4cx56slqfp9z8j76vnh8v45ydgskwl2vs9xjx6ai8991mzb5ikvl3vdgmrj1j17p2";
|
|
|
|
version = "1.0";
|
2021-02-22 22:45:26 +01:00
|
|
|
mavenbuild = mavenbuild-jdk8;
|
2016-10-31 14:38:28 +01:00
|
|
|
};
|
2016-11-15 01:23:08 +01:00
|
|
|
|
|
|
|
mavenHello_1_1 = mavenHelloRec {
|
2016-11-15 20:18:19 +01:00
|
|
|
mavenDeps = [ junit_4_12 mavenSurefireJunit4_2_12_4 hamcrestCore_1_3 ] ++ (with poms; [ surefireProviders_2_12_4 ]);
|
|
|
|
sha512 = "2f13592blvfgwad61174fza99ncb5jlch4sjjindk1pcaixqw26fnjfxb4ck80cknkihvcsylhviyfvhpm1ivvpg0zkicxva37cr4ri";
|
2016-11-15 01:23:08 +01:00
|
|
|
version = "1.1";
|
|
|
|
skipTests = false;
|
2016-11-15 20:18:19 +01:00
|
|
|
quiet = false;
|
2021-02-22 22:45:26 +01:00
|
|
|
mavenbuild = mavenbuild-jdk8;
|
2016-11-15 01:23:08 +01:00
|
|
|
};
|
2016-10-31 14:38:28 +01:00
|
|
|
}
|