flake: pass helix' wrapper through (#5994)

This allows easily (re)making helix (wrapped)
from an overriden helix-unwrapped derivation,
e.g. if one wanted to patch helix from nix.
pull/6028/head
Austreelis 2 years ago committed by GitHub
parent ce0837dbb7
commit f7edc34e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,7 +104,7 @@
}; };
}; };
pkgConfig = common: { pkgConfig = common: {
helix-term = { helix-term = let
# Wrap helix with runtime # Wrap helix with runtime
wrapper = _: old: let wrapper = _: old: let
inherit (common) pkgs; inherit (common) pkgs;
@ -130,9 +130,14 @@
''; '';
in in
helix-wrapped helix-wrapped
// {override = makeOverridableHelix old;}; // {
override = makeOverridableHelix old;
passthru = helix-wrapped.passthru // {wrapper = wrapper {};};
};
in in
makeOverridableHelix old {}; makeOverridableHelix old {};
in {
inherit wrapper;
overrides.fix-build.overrideAttrs = prev: { overrides.fix-build.overrideAttrs = prev: {
src = filteredSource; src = filteredSource;

Loading…
Cancel
Save