keycloak-scim/flake.nix

51 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-11-26 17:12:53 +00:00
{
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";
2024-11-27 08:46:23 +00:00
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
''
)
);
2024-11-26 17:12:53 +00:00
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 ];
};
}
);
}