fix: emitting packages

This commit is contained in:
D. Moonfire 2024-01-28 16:33:58 -06:00
parent 2c2a0c1e28
commit 004975b3ad

View file

@ -24,7 +24,7 @@
{ {
# Expose the configuration information. # Expose the configuration information.
lib = { lib = {
mkShellHook = mkConfig =
{ system { system
, pkgs , pkgs
, conform ? { } , conform ? { }
@ -40,17 +40,22 @@
rust = rustDefaults // rust; rust = rustDefaults // rust;
}; };
in in
'' {
echo '**************' yes packages = [ pkgs.lefthook ];
${configs.shellHook}
${pkgs.lefthook}/bin/lefthook install shellHook = ''
''; ${configs.shellHook}
${pkgs.lefthook}/bin/lefthook install
alias lefthook="${pkgs.lefthook}/bin/lefthook"
'';
};
}; };
# Set up the developer shell. # Set up the developer shell.
devShells = forEachSupportedSystem ({ system, pkgs }: devShells = forEachSupportedSystem ({ system, pkgs }:
let let
configShellHook = lib.mkShellHook { config = lib.mkConfig {
inherit system pkgs; inherit system pkgs;
#rust.enable = false; #rust.enable = false;
}; };
@ -58,7 +63,8 @@
{ {
# Shell # Shell
default = pkgs.mkShell { default = pkgs.mkShell {
shellHook = configShellHook; packages = [ ] ++ config.packages;
shellHook = config.shellHook;
}; };
}); });