Fixes CVE-2024-47070 and CVE-2024-47077 See https://docs.goauthentik.io/docs/releases/2024.8#fixed-in-202483 Dropped manually resolved lockfiles, fixed upstream in https://github.com/goauthentik/authentik/pull/11509 Flake lock file updates: • Updated input 'authentik-src': 'github:goauthentik/authentik/f5580d311d01f2202b666f76931ed04f30b9ec30' (2024-09-07) → 'github:goauthentik/authentik/91d2445c61da49026f76dceb7f5b524e30335a42' (2024-09-27)
24 lines
605 B
Nix
24 lines
605 B
Nix
{ authentik-src
|
|
, authentik-version
|
|
, authentikComponents
|
|
, buildNapalmPackage
|
|
, nodejs_22
|
|
}:
|
|
buildNapalmPackage "${authentik-src}/web" rec {
|
|
version = authentik-version; # 0.0.0 specified upstream in package.json
|
|
NODE_ENV = "production";
|
|
nodejs = nodejs_22;
|
|
preBuild = ''
|
|
ln -sv ${authentikComponents.docs} ../website
|
|
ln -sv ${authentik-src}/package.json ../
|
|
'';
|
|
npmCommands = [
|
|
"npm install --include=dev --nodedir=${nodejs}/include/node --loglevel verbose"
|
|
"npm run build"
|
|
];
|
|
installPhase = ''
|
|
mkdir $out
|
|
mv dist $out/dist
|
|
cp -r authentik icons $out
|
|
'';
|
|
}
|