nixos-configs/devShells/default.nix
matt1432 d2625fa290
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: fit structure of main directories
2025-01-04 21:34:36 -05:00

36 lines
813 B
Nix

{
pkgs,
self,
...
}: let
inherit (builtins) attrValues;
neovimShells = import ./neovim-shells {inherit pkgs self;};
bumpNpmDeps = pkgs.writeShellApplication {
name = "bumpNpmDeps";
runtimeInputs = attrValues {
inherit
(pkgs)
prefetch-npm-deps
nodejs_latest
;
};
text = ''
# this command might fail but still updates the main lockfile
npm i --package-lock-only || true
prefetch-npm-deps ./package-lock.json
'';
};
in
{
flake = pkgs.callPackage ./flake {};
default = self.devShells.${pkgs.system}.flake;
netdaemon = pkgs.callPackage ./netdaemon {};
node = pkgs.callPackage ./node {inherit bumpNpmDeps;};
subtitles-dev = pkgs.callPackage ./subtitle-dev {inherit bumpNpmDeps;};
}
// neovimShells