liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit aa5f8c07e6028821b31705cd06def8e37a9ed6ea
parent 1565a8414dfd1c9d1f52cf6003a08f4b54a26674
Author: Daniel Barlow <dan@telent.net>
Date:   Mon,  6 Mar 2023 17:49:11 +0000

don't patch s6 if new enough not to need it

Diffstat:
Moverlay.nix | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/overlay.nix b/overlay.nix @@ -4,14 +4,18 @@ in extraPkgs // { strace = prev.strace.override { libunwind = null; }; - s6 = prev.s6.overrideAttrs(o: { - patches = - (if o ? patches then o.patches else []) ++ [ - (final.fetchpatch { + s6 = prev.s6.overrideAttrs(o: + let patch = final.fetchpatch { # add "p" directive in s6-log url = "https://github.com/skarnet/s6/commit/ddc76841398dfd5e18b22943727ad74b880236d3.patch"; hash = "sha256-fBtUinBdp5GqoxgF6fcR44Tu8hakxs/rOShhuZOgokc="; - })]; + }; + patch_needed = builtins.compareVersions o.version "2.11.1.2" <= 0; + in { + patches = + (if o ? patches then o.patches else []) ++ + (if patch_needed then [ patch ] else []); + }); }); dnsmasq =