From f89134f9cea53ff6e1886216bff6f6fa097b07c3 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Wed, 6 Sep 2023 12:45:03 +0200 Subject: [PATCH] frontend: drop patch for package-lock.json after napalm update Napalm now correctly handles aliased dependencies. --- flake.nix | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/flake.nix b/flake.nix index 9026f5b..336f79e 100644 --- a/flake.nix +++ b/flake.nix @@ -76,31 +76,6 @@ }; frontend = napalm.legacyPackages.${system}.buildPackage "${authentik-src}/web" { version = authentik-version; # 0.0.0 specified upstream in package.json - packageLock = let - fix-napalm-registry-500-response = pkgs.writeText "lockfile.patch" '' - diff --git a/web/package-lock.json b/web/package-lock.json - index 028accd89..6c3590120 100644 - --- a/web/package-lock.json - +++ b/web/package-lock.json - @@ -22959,8 +22959,7 @@ - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - - "node_modules/wrap-ansi-cjs": { - - "name": "wrap-ansi", - + "node_modules/wrap-ansi-cjs/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - ''; - srcWithFullyResolvedLockfile = pkgs.applyPatches { - name = "authentik-src-with-patched-package-lock"; - src = authentik-src; - patches = [ - fix-napalm-registry-500-response - ]; - }; - in "${srcWithFullyResolvedLockfile}/web/package-lock.json"; NODE_ENV = "production"; nodejs = pkgs.nodejs_20; preBuild = ''