feat: add dotnet
This commit is contained in:
parent
1c8f6a7606
commit
9b3f73848c
12 changed files with 308 additions and 0 deletions
13
templates/dotnet/nix/derivation.nix
Normal file
13
templates/dotnet/nix/derivation.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
buildDotnetModule,
|
||||
dotnetCorePackages,
|
||||
}:
|
||||
buildDotnetModule {
|
||||
pname = "DotnetApplication";
|
||||
version = "0.1.0";
|
||||
src = ../.;
|
||||
projectFile = "DotnetApplication/DotnetApplication.csproj";
|
||||
dotnet-sdk = dotnetCorePackages.dotnet_9.sdk;
|
||||
dotnet-runtime = dotnetCorePackages.dotnet_9.runtime;
|
||||
executables = ["DotnetApplication"];
|
||||
}
|
9
templates/dotnet/nix/shell.nix
Normal file
9
templates/dotnet/nix/shell.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
mkShell,
|
||||
dotnetCorePackages,
|
||||
}:
|
||||
mkShell {
|
||||
packages = [
|
||||
dotnetCorePackages.dotnet_9.sdk
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue