2024-12-22 00:27:24 -05:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
2024-12-16 15:51:41 -05:00
|
|
|
inherit (builtins) attrValues;
|
|
|
|
|
2025-01-04 21:34:36 -05:00
|
|
|
neovimShells = import ./neovim-shells {inherit pkgs self;};
|
2024-12-22 00:27:24 -05:00
|
|
|
|
2024-12-16 15:51:41 -05:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
2024-12-22 00:27:24 -05:00
|
|
|
in
|
|
|
|
{
|
2025-01-04 21:34:36 -05:00
|
|
|
flake = pkgs.callPackage ./flake {};
|
|
|
|
default = self.devShells.${pkgs.system}.flake;
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2025-01-04 21:34:36 -05:00
|
|
|
netdaemon = pkgs.callPackage ./netdaemon {};
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2025-01-04 21:34:36 -05:00
|
|
|
node = pkgs.callPackage ./node {inherit bumpNpmDeps;};
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2025-01-04 21:34:36 -05:00
|
|
|
subtitles-dev = pkgs.callPackage ./subtitle-dev {inherit bumpNpmDeps;};
|
2024-12-22 00:27:24 -05:00
|
|
|
}
|
2025-01-04 21:34:36 -05:00
|
|
|
// neovimShells
|