From 9e30ed04224144829d946335f3d43353aff24bc9 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 13 Oct 2023 17:36:53 +0200 Subject: deploy authentik --- modules/authentik/authentik-server.nix | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 modules/authentik/authentik-server.nix (limited to 'modules/authentik/authentik-server.nix') diff --git a/modules/authentik/authentik-server.nix b/modules/authentik/authentik-server.nix deleted file mode 100644 index 8fefc95..0000000 --- a/modules/authentik/authentik-server.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ lib, stdenv, buildGoModule, fetchFromGitHub, python3Packages, makeWrapper, callPackage, ... }: - -let authentik = callPackage ./authentik.nix { }; -in -buildGoModule rec { - pname = "authentik-server"; - version = "2023.8.3"; - - src = fetchFromGitHub { - owner = "goauthentik"; - repo = "authentik"; - rev = "version/${version}"; - hash = "sha256-dpGvxhA5NWO8LKrGXzalV9EVn/nUIj6sMy2HdY5tjlM="; - }; - - vendorHash = "sha256-F3JzzL6Gg9H4qdmp4MbQFupccATYIUIFL05is6xzoZY="; - - subPackages = [ "cmd/server" ]; - - postPatch = '' - substituteInPlace internal/gounicorn/gounicorn.go \ - --replace "./manage.py" "${authentik}/bin/manage.py" - - substituteInPlace internal/gounicorn/gounicorn.go \ - --replace "./lifecycle" "${authentik}/bin" - ''; - - postInstall = '' - wrapProgram "$out/bin/server" --set PATH ${python3Packages.gunicorn}/bin - ''; - - nativeBuildInputs = [ makeWrapper ]; -} -- cgit v1.2.3