Python webserver to serve RFC7033 since Authentik does not support it. This is needed for OICD login in Tailscale
15 lines
268 B
Nix
15 lines
268 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
}:
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
name = "authentik-rfc7033";
|
|
src = ./src;
|
|
|
|
buildInputs = [ pkgs.python3 ];
|
|
|
|
installPhase = ''
|
|
install -Dm755 rfc-7033.py $out/bin/rfc-7033.py
|
|
patchShebangs $out/bin/rfc-7033.py
|
|
'';
|
|
}
|