TFTStats/flake.nix

26 lines
684 B
Nix
Raw Normal View History

2025-08-17 18:01:08 +02:00
{
description = "Minimal Angular dev shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [ nodejs typescript nodePackages.typescript-language-server nodePackages.eslint ];
shellHook = ''
2025-11-25 15:41:20 +01:00
clear
echo "------------------"
echo "Deploying TFTStats"
echo "------------------"
npm install
npm run build
cp -R dist/tft_stats /var/www/
2025-08-17 18:01:08 +02:00
'';
};
apps.${system}.ng-build = {};
};
}