The updated nixpkgs pin already contains the s6 softlimit and mdevd backports carried by Spectrum. Leave the vendored patch files in-tree for older pins, but stop applying them when building against this nixpkgs revision. Signed-off-by: colbyt <colby@colbyt.com> --- pkgs/skaware-packages/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/skaware-packages/default.nix b/pkgs/skaware-packages/default.nix index 1489317..2e9244b 100644 --- a/pkgs/skaware-packages/default.nix +++ b/pkgs/skaware-packages/default.nix @@ -4,15 +4,15 @@ import ../../lib/overlay-package.nix [ "skawarePackages" ] ({ final, super }: super.skawarePackages.overrideScope (_: prev: { - s6 = prev.s6.overrideAttrs ({ patches ? [], ... }: { - patches = patches ++ [ + s6 = prev.s6.overrideAttrs ({ patches ? [], version, ... }: { + patches = patches ++ final.lib.optionals (final.lib.versionOlder version "2.15.0.0") [ # Upstream c3a8ef70; vendored because cgit patch URLs are unstable. ./0001-s6-softlimit-add-p-option-for-rlimit-rtprio.patch ]; }); - mdevd = prev.mdevd.overrideAttrs ({ patches ? [], ... }: { - patches = patches ++ [ + mdevd = prev.mdevd.overrideAttrs ({ patches ? [], version, ... }: { + patches = patches ++ final.lib.optionals (final.lib.versionOlder version "0.1.8.2") [ # Upstream 252f241e; vendored because cgit patch URLs are unstable. ./0001-mdevd-don-t-chmod-device-nodes-for-lines.patch ]; -- 2.54.0