-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthentik.nix
33 lines (30 loc) · 921 Bytes
/
authentik.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ buildGoModule, fetchFromGitHub, lib, python311Packages, makeWrapper}:
let
bins = [python311Packages.gunicorn];
in
buildGoModule rec {
pname = "authentik";
version = "2024.4.0";
src = fetchFromGitHub {
owner = "goauthentik";
repo = "authentik";
rev = "version/${version}";
hash = "sha256-+nCqLd3BE6lRPj9sgbmXkpY+H0yT5OgEZ7LVSxhMCg8=";
};
subPackages = [ "cmd/server" ];
buildInputs = []++bins;
nativeBuildInputs = [makeWrapper]++bins;
vendorHash = "sha256-YpOG5pNw5CNSubm1OkPVpSi7l+l5UdJFido2SQLtK3g=";
checkPhase = "";
postInstall = ''
wrapProgram $out/bin/server \
--set PATH ${lib.makeBinPath bins}
'';
meta = with lib; {
homepage = "https://goauthentik.io/";
description = "The authentication glue you need.";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.bsd2;
maintainers = with maintainers; [ tcheronneau ];
};
}