diff options
author | Vincent Ambo <mail@tazj.in> | 2021-12-25T23·00+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2021-12-26T00·10+0000 |
commit | 28a80e02514fe8c13e1826fda5d53f938105d600 (patch) | |
tree | b338a8ed7650374562d3bb429f86d710a181a7b6 /third_party/apereo-cas/default.nix | |
parent | 738cca62c1c4b5297d636fc331cd49bd82eaa0a6 (diff) |
chore: friendship ended with cas, now keycloak is our best friend r/3411
Note that the login.tvl.fyi WWW configuration is still kind of hanging around until we've settled where Keycloak lives. Change-Id: Iaca4e394a7371cafa3716ca66ef09c4eca5b1520 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4626 Autosubmit: tazjin <mail@tazj.in> Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'third_party/apereo-cas/default.nix')
-rw-r--r-- | third_party/apereo-cas/default.nix | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/third_party/apereo-cas/default.nix b/third_party/apereo-cas/default.nix deleted file mode 100644 index bda607c07287..000000000000 --- a/third_party/apereo-cas/default.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ pkgs, lib, ... }: - -let - name = "apereo-cas-${version}"; - version = "6.2.0"; - overlay = ./overlay; - - jdk = pkgs.jdk11; - gradle = pkgs.gradle_6; - - meta = with lib; { - homepage = "https://www.apereo.org/projects/cas"; - description = "CAS provides enterprise single sign-on for the Web"; - platforms = platforms.linux; - licenses = licenses.asl20; - }; - - deps = pkgs.stdenvNoCC.mkDerivation { - inherit meta; - - name = "${name}-deps"; - src = overlay; - nativeBuildInputs = with pkgs; [ gradle perl ]; - - buildPhase = '' - export GRADLE_USER_HOME="$(mktemp -d)" - gradle --no-daemon build -x test downloadShell - ''; - - # perl code mavenizes paths (see pkgs/servers/ma1sd from nixpkgs) - installPhase = '' - find $GRADLE_USER_HOME/caches/modules-2 -type f -regex '.*\.\([wj]ar\|pom\)' \ - | perl -pe 's#(.*/([^/]+)/([^/]+)/([^/]+)/[0-9a-f]{30,40}/([^/\s]+))$# $src = $1; ($x = $2) =~ tr|\.|/|; $dir1 = $3; $dir2 = $4; ($y = $5) =~ s|-jvm||n; "install -Dm444 $src \$out/$x/$dir1/$dir2/$y" #e' \ - | sh - install -m444 build/libs/cas-server-support-shell-* $out/cas-server-shell.jar - ''; - - outputHashAlgo = "sha256"; - outputHashMode = "recursive"; - outputHash = "07wxmgljs8v0pmnryqjz6dr6jl93x3023y8zx3al5314mmqkpaan"; - }; -in -pkgs.stdenvNoCC.mkDerivation { - inherit name version meta; - - src = overlay; - nativeBuildInputs = with pkgs; [ gradle makeWrapper ]; - buildInputs = with pkgs; [ jdk ]; - - buildPhase = '' - export GRADLE_USER_HOME="$(mktemp -d)" - - gradle -PcacheLocation="${deps}" --offline --no-daemon build -x test - ''; - - installPhase = '' - install -D build/libs/cas.war $out/lib/cas.war - cp ${deps}/cas-server-shell.jar $out/lib/cas-server-shell.jar - cp -R etc $out/etc - makeWrapper ${jdk}/bin/java $out/bin/cas --add-flags "-Dcas.standalone.configurationDirectory=$out/etc/cas/config -jar $out/lib/cas.war" - makeWrapper ${jdk}/bin/java $out/bin/cas-shell --add-flags "-Dcas.standalone.configurationDirectory=$out/etc/cas/config -jar $out/lib/cas-server-shell.jar" - ''; -} |