Skip to content

Commit

Permalink
nix: add overlay for convenient package usage (helix-editor#7078)
Browse files Browse the repository at this point in the history
  • Loading branch information
happysalada authored and wes-adams committed Jul 3, 2023
1 parent fa86ad9 commit f887ce1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
};
in
inp.parts.lib.mkFlake {inputs = inp;} {
imports = [inp.nci.flakeModule];
imports = [inp.nci.flakeModule inp.parts.flakeModules.easyOverlay];
systems = [
"x86_64-linux"
"x86_64-darwin"
Expand Down Expand Up @@ -146,6 +146,10 @@
packages.helix-dev = makeOverridableHelix config.packages.helix-unwrapped-dev {};
packages.default = config.packages.helix;

overlayAttrs = {
inherit (config.packages) helix;
};

devShells.default = config.nci.outputs."helix-project".devShell.overrideAttrs (old: {
nativeBuildInputs =
(old.nativeBuildInputs or [])
Expand Down

0 comments on commit f887ce1

Please sign in to comment.