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

26 lines
542 B
Nix

{ buildMavenPackage
, fetchFromGitHub
}:
let
version = "0.43";
in
buildMavenPackage {
inherit version;
pname = "keycloak-orgs";
src = fetchFromGitHub {
owner = "p2-inc";
repo = "keycloak-orgs";
rev = "v${version}";
hash = "sha256-aOnhUdDc9GNkBJx+bG393VDgFvB+ZKVzGBP8MBbqOhU=";
};
mvnHash = "sha256-gOqXkyumC4/5S+Sb7/Ed7b93sR3kq660I0x4MFxFwro=";
mvnParameters = "-Dmaven.buildNumber.skip=true";
installPhase = ''
install -D target/keycloak-orgs-${version}.jar $out/keycloak-orgs-${version}.jar
'';
}