dev-templates/csharp/flake.nix

31 lines
741 B
Nix
Raw Normal View History

2023-05-25 21:23:06 +02:00
{
description = "A Nix-flake-based C# development environment";
2023-07-14 00:15:22 +02:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2023-05-25 21:23:06 +02:00
outputs =
{ self
, nixpkgs
}:
let
2023-07-14 00:15:22 +02:00
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in {
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
#dotnet-sdk_6
dotnet-sdk_7
#dotnet-sdk_8
omnisharp-roslyn
mono
msbuild
];
};
});
};
2023-05-25 21:23:06 +02:00
}