Skip to content

Commit 0694588

Browse files
committed
fix: ignore patches from upstream if the version is not more supported ustream
1 parent 54e347d commit 0694588

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/package-overrides.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ in
124124
dom = prev.extensions.dom.overrideAttrs (attrs: {
125125
patches =
126126
let
127-
upstreamPatches = attrs.patches or [ ];
127+
# TODO: Find a way to find the lowest supported PHP version supported in `nixpkgs` and use it here.
128+
upstreamPatches = lib.optionals (lib.versionAtLeast prev.php.version "8.2") (attrs.patches or [ ]);
128129

129130
ourPatches =
130131
lib.optionals (lib.versionOlder prev.php.version "7.2") [

0 commit comments

Comments
 (0)