Skip to content

Commit

Permalink
flake: pass helix' wrapper through (helix-editor#5994)
Browse files Browse the repository at this point in the history
This allows easily (re)making helix (wrapped)
from an overriden helix-unwrapped derivation,
e.g. if one wanted to patch helix from nix.
  • Loading branch information
Austreelis authored and wes-adams committed Jul 3, 2023
1 parent 9136d83 commit 5ce9bc1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
};
};
pkgConfig = common: {
helix-term = {
helix-term = let
# Wrap helix with runtime
wrapper = _: old: let
inherit (common) pkgs;
Expand All @@ -130,9 +130,14 @@
'';
in
helix-wrapped
// {override = makeOverridableHelix old;};
// {
override = makeOverridableHelix old;
passthru = helix-wrapped.passthru // {wrapper = wrapper {};};
};
in
makeOverridableHelix old {};
in {
inherit wrapper;
overrides.fix-build.overrideAttrs = prev: {
src = filteredSource;

Expand Down

0 comments on commit 5ce9bc1

Please sign in to comment.