style: let inherit fetchpatch

This commit is contained in:
Daniel Barlow 2023-03-17 11:49:30 +00:00
parent 153cbec573
commit 9f9558c9e8

View file

@ -1,11 +1,13 @@
final: prev: final: prev:
let extraPkgs = import ./pkgs/default.nix { inherit (final) callPackage; }; let
extraPkgs = import ./pkgs/default.nix { inherit (final) callPackage; };
inherit (final) fetchpatch;
in in
extraPkgs // { extraPkgs // {
strace = prev.strace.override { libunwind = null; }; strace = prev.strace.override { libunwind = null; };
s6 = prev.s6.overrideAttrs(o: s6 = prev.s6.overrideAttrs(o:
let patch = final.fetchpatch { let patch = fetchpatch {
# add "p" directive in s6-log # add "p" directive in s6-log
url = "https://github.com/skarnet/s6/commit/ddc76841398dfd5e18b22943727ad74b880236d3.patch"; url = "https://github.com/skarnet/s6/commit/ddc76841398dfd5e18b22943727ad74b880236d3.patch";
hash = "sha256-fBtUinBdp5GqoxgF6fcR44Tu8hakxs/rOShhuZOgokc="; hash = "sha256-fBtUinBdp5GqoxgF6fcR44Tu8hakxs/rOShhuZOgokc=";