pystardust_ani-cli/shell.nix
HaxSam aef48eed70
test: add nix dev shell env (#1218)
Co-authored-by: port19 <port19@port19.xyz>
2023-09-19 14:10:45 +02:00

23 lines
681 B
Nix

{
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 ];
}