45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
description = "keycloak-event-listener";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
devshell.url = "github:numtide/devshell";
|
|
};
|
|
|
|
outputs = inputs:
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
imports = [
|
|
inputs.devshell.flakeModule
|
|
];
|
|
|
|
systems = [
|
|
"x86_64-linux"
|
|
];
|
|
|
|
perSystem = args@{ system, pkgs, lib, config, ... }: let
|
|
keycloak-event-listener = pkgs.maven.buildMavenPackage {
|
|
pname = "keycloak-event-listener";
|
|
version = "0.0.1";
|
|
src = ./.;
|
|
mvnHash = "sha256-umoAXAKhYvdLbCYCb/NSWx+qqesi/KMt7BlMg5p8Gkc=";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm444 -t "$out" target/pubsolar.keycloak-event-listener.jar
|
|
runHook postInstall
|
|
'';
|
|
};
|
|
in {
|
|
packages.default = keycloak-event-listener;
|
|
packages.keycloak-event-listener = keycloak-event-listener;
|
|
|
|
devshells.default = {
|
|
packages = with pkgs; [
|
|
maven
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|