feat(nvim): expose devShells through my flake
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-22 00:27:24 -05:00
parent 346077c0e0
commit b8d9e9ff92
3 changed files with 105 additions and 77 deletions

View file

@ -1,6 +1,12 @@
{pkgs, ...}: let
{
pkgs,
self,
...
}: let
inherit (builtins) attrValues;
langsShells = import ./langs.nix {inherit pkgs self;};
bumpNpmDeps = pkgs.writeShellApplication {
name = "bumpNpmDeps";
runtimeInputs = attrValues {
@ -16,7 +22,8 @@
prefetch-npm-deps ./package-lock.json
'';
};
in {
in
{
default = pkgs.mkShell {
packages = [
(pkgs.writeShellApplication {
@ -103,4 +110,5 @@ in {
;
};
};
}
}
// langsShells

20
devShells/langs.nix Normal file
View file

@ -0,0 +1,20 @@
{
pkgs,
self,
...
}: let
inherit (pkgs.lib) listToAttrs nameValuePair;
mkLangsShells = langs:
listToAttrs (map (l:
nameValuePair l (pkgs.callPackage ../homeManagerModules/neovim/langs/${l}/shell.nix {inherit self;}))
langs);
in
mkLangsShells [
"csharp"
"json"
"lua"
"markdown"
"rust"
"web"
"c-lang"
]

View file

@ -141,7 +141,7 @@
devShells =
perSystem (pkgs:
import ./devShells {inherit pkgs;});
import ./devShells {inherit pkgs self;});
packages =
perSystem (pkgs: