meta: refactor c and dotnet
This commit is contained in:
parent
599fe1903f
commit
a4368b5ddc
14 changed files with 53 additions and 252 deletions
13
templates/dotnet/flake/package.nix
Normal file
13
templates/dotnet/flake/package.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
buildDotnetModule,
|
||||
dotnetCorePackages,
|
||||
}:
|
||||
buildDotnetModule {
|
||||
pname = "CHANGE_NAME";
|
||||
version = "CHANGE_VER";
|
||||
src = ../.;
|
||||
projectFile = "CHANGE_NAME/CHANGE_NAME.csproj";
|
||||
dotnet-sdk = dotnetCorePackages.dotnet_9.sdk;
|
||||
dotnet-runtime = dotnetCorePackages.dotnet_9.runtime;
|
||||
executables = ["CHANGE_NAME"];
|
||||
}
|
16
templates/dotnet/flake/shell.nix
Normal file
16
templates/dotnet/flake/shell.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkShell,
|
||||
dotnetCorePackages,
|
||||
nixfmt,
|
||||
deadnix,
|
||||
statix,
|
||||
}:
|
||||
mkShell {
|
||||
name = "dotnet";
|
||||
packages = [
|
||||
dotnetCorePackages.dotnet_9.sdk
|
||||
nixfmt
|
||||
deadnix
|
||||
statix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue