darwin compatibility logic & darwin mcp
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
{ inputs, ... }:
|
||||
{
|
||||
perSystem = _: {
|
||||
devShells =
|
||||
let
|
||||
hostShells = inputs.self.nixosConfigurations.emacs.config.devShells;
|
||||
in
|
||||
inputs.self.lib.langList
|
||||
|> builtins.filter (name: hostShells ? ${name})
|
||||
|> map (name: {
|
||||
inherit name;
|
||||
value = hostShells.${name};
|
||||
})
|
||||
|> builtins.listToAttrs;
|
||||
};
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
devShells =
|
||||
if pkgs.stdenv.isLinux then
|
||||
let
|
||||
hostShells = inputs.self.nixosConfigurations.emacs.config.devShells;
|
||||
in
|
||||
inputs.self.lib.langList
|
||||
|> builtins.filter (name: hostShells ? ${name})
|
||||
|> map (name: {
|
||||
inherit name;
|
||||
value = hostShells.${name};
|
||||
})
|
||||
|> builtins.listToAttrs
|
||||
else
|
||||
{
|
||||
mcp = (import ../modules/dev/mcp/common.nix { inherit pkgs inputs; }).devShell;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user