feat(nvim): expose devShells through my flake
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
346077c0e0
commit
b8d9e9ff92
3 changed files with 105 additions and 77 deletions
|
@ -1,6 +1,12 @@
|
||||||
{pkgs, ...}: let
|
{
|
||||||
|
pkgs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
inherit (builtins) attrValues;
|
inherit (builtins) attrValues;
|
||||||
|
|
||||||
|
langsShells = import ./langs.nix {inherit pkgs self;};
|
||||||
|
|
||||||
bumpNpmDeps = pkgs.writeShellApplication {
|
bumpNpmDeps = pkgs.writeShellApplication {
|
||||||
name = "bumpNpmDeps";
|
name = "bumpNpmDeps";
|
||||||
runtimeInputs = attrValues {
|
runtimeInputs = attrValues {
|
||||||
|
@ -16,7 +22,8 @@
|
||||||
prefetch-npm-deps ./package-lock.json
|
prefetch-npm-deps ./package-lock.json
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
(pkgs.writeShellApplication {
|
(pkgs.writeShellApplication {
|
||||||
|
@ -103,4 +110,5 @@ in {
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
// langsShells
|
||||||
|
|
20
devShells/langs.nix
Normal file
20
devShells/langs.nix
Normal 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"
|
||||||
|
]
|
|
@ -141,7 +141,7 @@
|
||||||
|
|
||||||
devShells =
|
devShells =
|
||||||
perSystem (pkgs:
|
perSystem (pkgs:
|
||||||
import ./devShells {inherit pkgs;});
|
import ./devShells {inherit pkgs self;});
|
||||||
|
|
||||||
packages =
|
packages =
|
||||||
perSystem (pkgs:
|
perSystem (pkgs:
|
||||||
|
|
Loading…
Reference in a new issue