/
shell.nix
22 lines (19 loc) · 681 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
pkgs ? import <nixpkgs> {},
withMpv ? true,
withVlc ? false,
withIina ? false,
chromecastSupport ? false,
syncSupport ? false
}:
# To start the dev shell use the comment nix-shell
# use --arg withVlc true to use VLC
# use --arg withIina true to use Iina
# use --arg chromecastSupport true to use chromecastSupport
# use --arg syncSupport true to use syncSupport
assert withMpv || withVlc || withIina;
with pkgs;
mkShell {
name = "ani-cli dev shell";
buildInputs = [ shfmt shellcheck (ani-cli.override ({ withMpv = withMpv; withVlc = withVlc; withIina = withIina; chromecastSupport = chromecastSupport; syncSupport = syncSupport; })).runtimeDependencies ];
}