nixos-config/modules/keycloak/keycloak-orgs.nix

27 lines
735 B
Nix

{ buildMavenPackage, fetchFromGitHub }:
let
version = "0.70";
in
buildMavenPackage {
inherit version;
pname = "keycloak-orgs";
src = fetchFromGitHub {
owner = "p2-inc";
repo = "keycloak-orgs";
rev = "v${version}";
sha256 = "VsPANkqKOTKlh2TJt7kzYoLr4T7v86g7HocmWxG/z7A=";
# sha256 = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
doCheck = false;
mvnHash = "sha256-SXq4WxPgjJyO/DLvhptz5vOq3oOfmABygYFkl2C3HtI=";
# mvnHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
mvnParameters = "--batch-mode -DskipTests -Dmaven.test.skip=true -Dmaven.buildNumber.skip=true";
installPhase = ''
install -D target/keycloak-orgs-${version}.jar $out/keycloak-orgs-${version}.jar
'';
}