mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Split shell.nix into project specific ones
This commit is contained in:
parent
08d9a2271d
commit
7413284581
16
api/shell.nix
Normal file
16
api/shell.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
bun
|
||||
biome
|
||||
# for psql to debug from the cli
|
||||
postgresql_15
|
||||
# to build libvips (for sharp)
|
||||
nodejs
|
||||
node-gyp
|
||||
pkg-config
|
||||
vips
|
||||
];
|
||||
|
||||
SHARP_FORCE_GLOBAL_LIBVIPS = 1;
|
||||
}
|
15
auth/shell.nix
Normal file
15
auth/shell.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
go
|
||||
wgo
|
||||
go-migrate
|
||||
sqlc
|
||||
go-swag
|
||||
# for psql in cli (+ pgformatter for sql files)
|
||||
postgresql_15
|
||||
pgformatter
|
||||
# to run tests
|
||||
hurl
|
||||
];
|
||||
}
|
15
back/shell.nix
Normal file
15
back/shell.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{pkgs ? import <nixpkgs> {}}: let
|
||||
dotnet = with pkgs.dotnetCorePackages;
|
||||
combinePackages [
|
||||
sdk_8_0
|
||||
aspnetcore_8_0
|
||||
];
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
dotnet
|
||||
csharpier
|
||||
];
|
||||
|
||||
DOTNET_ROOT = "${dotnet}";
|
||||
}
|
6
chart/shell.nix
Normal file
6
chart/shell.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
kubernetes-helm
|
||||
];
|
||||
}
|
21
scanner/shell.nix
Normal file
21
scanner/shell.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{pkgs ? import <nixpkgs> {}}: let
|
||||
python = pkgs.python312.withPackages (ps:
|
||||
with ps; [
|
||||
guessit
|
||||
aiohttp
|
||||
jsons
|
||||
watchfiles
|
||||
pika
|
||||
aio-pika
|
||||
requests
|
||||
dataclasses-json
|
||||
msgspec
|
||||
langcodes
|
||||
]);
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
python
|
||||
ruff
|
||||
];
|
||||
}
|
64
shell.nix
64
shell.nix
@ -1,51 +1,15 @@
|
||||
{pkgs ? import <nixpkgs> {}}: let
|
||||
python = pkgs.python312.withPackages (ps:
|
||||
with ps; [
|
||||
guessit
|
||||
aiohttp
|
||||
jsons
|
||||
watchfiles
|
||||
pika
|
||||
aio-pika
|
||||
requests
|
||||
dataclasses-json
|
||||
msgspec
|
||||
langcodes
|
||||
]);
|
||||
dotnet = with pkgs.dotnetCorePackages;
|
||||
combinePackages [
|
||||
sdk_8_0
|
||||
aspnetcore_8_0
|
||||
];
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
# nodejs-18_x
|
||||
nodePackages.yarn
|
||||
dotnet
|
||||
csharpier
|
||||
python
|
||||
ruff
|
||||
go
|
||||
wgo
|
||||
mediainfo
|
||||
ffmpeg-full
|
||||
postgresql_15
|
||||
pgformatter
|
||||
biome
|
||||
kubernetes-helm
|
||||
go-migrate
|
||||
sqlc
|
||||
go-swag
|
||||
bun
|
||||
pkg-config
|
||||
nodejs
|
||||
node-gyp
|
||||
vips
|
||||
hurl
|
||||
];
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
name = "kyoo";
|
||||
inputsFrom = [
|
||||
(import ./api/shell.nix {inherit pkgs;})
|
||||
(import ./auth/shell.nix {inherit pkgs;})
|
||||
(import ./back/shell.nix {inherit pkgs;})
|
||||
(import ./chart/shell.nix {inherit pkgs;})
|
||||
(import ./scanner/shell.nix {inherit pkgs;})
|
||||
(import ./transcoder/shell.nix {inherit pkgs;})
|
||||
];
|
||||
|
||||
DOTNET_ROOT = "${dotnet}";
|
||||
|
||||
SHARP_FORCE_GLOBAL_LIBVIPS = 1;
|
||||
}
|
||||
# env vars aren't inherited from the `inputsFrom`
|
||||
SHARP_FORCE_GLOBAL_LIBVIPS = 1;
|
||||
}
|
||||
|
14
transcoder/shell.nix
Normal file
14
transcoder/shell.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
go
|
||||
wgo
|
||||
go-migrate
|
||||
# for psql in cli (+ pgformatter for sql files)
|
||||
postgresql_15
|
||||
pgformatter
|
||||
# to debug video files
|
||||
mediainfo
|
||||
ffmpeg-full
|
||||
];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user