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