Add repl alias to nix shell

This commit is contained in:
Jaculabilis 2022-12-31 12:41:37 -08:00 committed by Tim Van Baak
parent 91d2886d19
commit 6f03c5ada1
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
in rec { in rec {
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
shellHook = ''
alias repl="dotnet run --project MultiversalDiplomacy repl"
'';
DOTNET_CLI_TELEMETRY_OPTOUT = 1; DOTNET_CLI_TELEMETRY_OPTOUT = 1;
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ]; NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ];
NIX_LD = builtins.readFile "${pkgs.stdenv.cc}/nix-support/dynamic-linker"; NIX_LD = builtins.readFile "${pkgs.stdenv.cc}/nix-support/dynamic-linker";