blob: 3fbf41627343a3e9be8eb65c663f0d9d60dadfd4 (
plain)
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
|
{ 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/
'';
}
|