41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
description = "Godot Mono dev shell";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
});
|
|
in
|
|
{
|
|
devShells = forAllSystems ({ pkgs }: {
|
|
default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
godot-mono
|
|
# dotnet-sdk_9
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
vscodium
|
|
omnisharp-roslyn
|
|
netcoredbg
|
|
];
|
|
|
|
shellHook = ''
|
|
# export DOTNET_ROOT="${pkgs.dotnet-sdk_9}"
|
|
|
|
# export MSBuildSDKsPath="${pkgs.dotnet-sdk_9}/sdk/${pkgs.dotnet-sdk_9.version}/Sdks"
|
|
|
|
echo "// DEV SHELL LOADED //"
|
|
echo "Using .NET SDK Version: $(dotnet --version)"
|
|
'';
|
|
};
|
|
});
|
|
};
|
|
}
|