mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
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.
This commit is contained in:
parent
ce0837dbb7
commit
f7edc34e7b
@ -104,7 +104,7 @@
|
||||
};
|
||||
};
|
||||
pkgConfig = common: {
|
||||
helix-term = {
|
||||
helix-term = let
|
||||
# Wrap helix with runtime
|
||||
wrapper = _: old: let
|
||||
inherit (common) pkgs;
|
||||
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user