diff options
Diffstat (limited to 'modules/authentik/authentik-web.nix')
| -rw-r--r-- | modules/authentik/authentik-web.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/authentik/authentik-web.nix b/modules/authentik/authentik-web.nix new file mode 100644 index 0000000..3fbf416 --- /dev/null +++ b/modules/authentik/authentik-web.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, buildNpmPackage, fetchFromGitHub, python3, ... }: + +buildNpmPackage rec { + pname = "authentik-web"; + version = "2023.8.3"; + + src = fetchFromGitHub { + owner = "goauthentik"; + repo = "authentik"; + rev = "version/${version}"; + hash = "sha256-dpGvxhA5NWO8LKrGXzalV9EVn/nUIj6sMy2HdY5tjlM="; + }; + + sourceRoot = "source/web"; + + npmDepsHash = "sha256-kCKtrsUA7VLHzf9SR/UW1z3RCpQc5r5sa/f4dxonTZ0="; + npmPackFlags = [ "--ignore-scripts" ]; + npmBuildScript = "build"; + + nativeBuildInputs = [ python3 ]; + + installPhase = '' + mkdir $out + cp -r dist/ $out/ + cp -r authentik/ $out/ + ''; +} |
