Files
Excavator/shell.nix

30 lines
516 B
Nix

{
sources ? import ./nix,
pkgs ? import sources.nixpkgs { },
}:
let
dotnet-sdk = pkgs.dotnetCorePackages.sdk_9_0;
in
pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [
nodejs
dotnet-sdk
fsautocomplete
fantomas
];
buildInputs = [
pkgs.netcdf
];
DOTNET_ROOT = "${dotnet-sdk}/share/dotnet";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
LOG_LEVEL = "verbose";
NPINS_DIRECTORY = "./nix";
shellHook = ''
export PATH="$PWD/src/bin/Debug/net9.0:$PATH"
'';
}