1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-05-07 11:36:04 +02:00

nix: add overlay for convenient package usage (#7078)

This commit is contained in:
Yt 2023-05-19 09:21:05 -04:00 committed by GitHub
parent 53f47bc477
commit ff442eecd0
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@
}; };
in in
inp.parts.lib.mkFlake {inputs = inp;} { inp.parts.lib.mkFlake {inputs = inp;} {
imports = [inp.nci.flakeModule]; imports = [inp.nci.flakeModule inp.parts.flakeModules.easyOverlay];
systems = [ systems = [
"x86_64-linux" "x86_64-linux"
"x86_64-darwin" "x86_64-darwin"
@ -146,6 +146,10 @@
packages.helix-dev = makeOverridableHelix config.packages.helix-unwrapped-dev {}; packages.helix-dev = makeOverridableHelix config.packages.helix-unwrapped-dev {};
packages.default = config.packages.helix; packages.default = config.packages.helix;
overlayAttrs = {
inherit (config.packages) helix;
};
devShells.default = config.nci.outputs."helix-project".devShell.overrideAttrs (old: { devShells.default = config.nci.outputs."helix-project".devShell.overrideAttrs (old: {
nativeBuildInputs = nativeBuildInputs =
(old.nativeBuildInputs or []) (old.nativeBuildInputs or [])