From 6f03c5ada1802c139afab6fe3810fb4df7d300f8 Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Sat, 31 Dec 2022 12:41:37 -0800 Subject: [PATCH] Add repl alias to nix shell --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 14f8763..f78647d 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,9 @@ let pkgs = nixpkgs.legacyPackages.${system}; in rec { devShell = pkgs.mkShell { + shellHook = '' + alias repl="dotnet run --project MultiversalDiplomacy repl" + ''; DOTNET_CLI_TELEMETRY_OPTOUT = 1; NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ]; NIX_LD = builtins.readFile "${pkgs.stdenv.cc}/nix-support/dynamic-linker";