fix: emitting packages
This commit is contained in:
parent
2c2a0c1e28
commit
004975b3ad
1 changed files with 14 additions and 8 deletions
16
flake.nix
16
flake.nix
|
@ -24,7 +24,7 @@
|
|||
{
|
||||
# Expose the configuration information.
|
||||
lib = {
|
||||
mkShellHook =
|
||||
mkConfig =
|
||||
{ system
|
||||
, pkgs
|
||||
, conform ? { }
|
||||
|
@ -40,17 +40,22 @@
|
|||
rust = rustDefaults // rust;
|
||||
};
|
||||
in
|
||||
''
|
||||
echo '**************' yes
|
||||
{
|
||||
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;
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue