keycloak-scim/flake.nix

50 lines
1.4 KiB
Nix

{
description = "SCIM client Keycloak extension";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.maven.buildMavenPackage rec {
pname = "keycloak-scim";
version = (
builtins.readFile (
pkgs.runCommand "version" { } ''
${pkgs.coreutils}/bin/cat ${src}/pom.xml | ${pkgs.xq-xml}/bin/xq -x "project/version" | ${pkgs.coreutils}/bin/tr -d '\n' > $out
''
)
);
src = ./.;
mvnHash = "sha256-y3ASPCAbgwSJNu4NiBeWNFc8YA903C0e5z0/TSlc3Og=";
installPhase = ''
cp target/${pname}-${version}-jar-with-dependencies.jar $out
'';
# meta = with lib; {
# description = "Simple command line wrapper around JD Core Java Decompiler project";
# homepage = "https://github.com/intoolswetrust/jd-cli";
# license = licenses.gpl3Plus;
# maintainers = with maintainers; [ majiir ];
# };
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.maven ];
};
}
);
}