aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustreelis2023-02-17 06:17:38 +0000
committerGitHub2023-02-17 06:17:38 +0000
commitf7edc34e7b0dd4cd0b6582ee32cc43d1c79d7dd7 (patch)
treed95ba739f66a35bccc6a7f56e91f400a7d5093e0
parentce0837dbb75badf39c9b1ac251fba9c3efbc57c4 (diff)
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.
-rw-r--r--flake.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 673f3cf6..734ac78e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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;