fix: emitting packages
This commit is contained in:
parent
2c2a0c1e28
commit
004975b3ad
1 changed files with 14 additions and 8 deletions
22
flake.nix
22
flake.nix
|
@ -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;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue