diff --git a/pkgs/by-name/ou/outline/package.nix b/pkgs/by-name/ou/outline/package.nix index 592ec0065733..b7889be1b65b 100644 --- a/pkgs/by-name/ou/outline/package.nix +++ b/pkgs/by-name/ou/outline/package.nix @@ -20,6 +20,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-LHU3OQglvxLVemDKoDxeI7cGyuSnIUYoPV3aj/LR9XA="; }; + patches = [ + # Remove after upstream updates to Yarn 4.14 + # https://github.com/outline/outline/blob/main/package.json#L398 + ./yarn-4.14-support.patch + ]; + missingHashes = ./missing-hashes.json; nativeBuildInputs = [ @@ -29,8 +35,8 @@ stdenv.mkDerivation (finalAttrs: { ]; offlineCache = yarn-berry_4.fetchYarnBerryDeps { - inherit (finalAttrs) src missingHashes; - hash = "sha256-j1MGkIJGjXsoT9aOADRtdywRNI2k5hKeD3O20iUh0sA="; + inherit (finalAttrs) src missingHashes patches; + hash = "sha256-yMHpM/1hQ/86MItCu8SP82CgF/ED97l6lVHF+Cf8h+U="; }; buildPhase = '' diff --git a/pkgs/by-name/ou/outline/yarn-4.14-support.patch b/pkgs/by-name/ou/outline/yarn-4.14-support.patch new file mode 100644 index 000000000000..6c50d24297b0 --- /dev/null +++ b/pkgs/by-name/ou/outline/yarn-4.14-support.patch @@ -0,0 +1,22 @@ +--- a/.yarnrc.yml ++++ b/.yarnrc.yml +@@ -12,3 +12,8 @@ npmPreapprovedPackages: + npmAuditIgnoreAdvisories: + - "1113517" # GHSA-mw96-cpmx-2vgc rollup <2.80.0 path traversal (workbox-build, build-time) + - "1113686" # GHSA-5c6j-r48x-rmvq serialize-javascript RCE (@rollup/plugin-terser, build-time) ++ ++approvedGitRepositories: ++ - "**" ++ ++enableScripts: true +--- a/yarn.lock ++++ b/yarn.lock +@@ -2,7 +2,7 @@ + # Manual changes might be lost - proceed with caution! + + __metadata: +- version: 8 ++ version: 9 + cacheKey: 10c0 + + "@antfu/install-pkg@npm:^1.1.0":