keycloak-event-listener/flake.nix

45 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{
2024-08-25 13:06:56 +00:00
description = "keycloak-event-listener";
2024-08-25 13:06:56 +00:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
devshell.url = "github:numtide/devshell";
};
2024-08-25 13:06:56 +00:00
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
];
2024-08-25 13:06:56 +00:00
systems = [
"x86_64-linux"
];
2024-08-25 13:06:56 +00:00
perSystem = args@{ system, pkgs, lib, config, ... }: let
keycloak-event-listener = pkgs.maven.buildMavenPackage {
pname = "keycloak-event-listener";
version = "0.0.1";
src = ./.;
2024-08-25 14:23:00 +00:00
mvnHash = "sha256-SSiiKgrNUV2T84Vj4zhKzvl7HAZlPZ2OwUzoIsureu8=";
2024-08-25 13:06:56 +00:00
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;
2024-08-25 13:06:56 +00:00
devshells.default = {
packages = with pkgs; [
maven
];
};
};
};
}