simple hello world
This commit is contained in:
34
flake.nix
34
flake.nix
@@ -23,13 +23,40 @@
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
}: rec {
|
||||
# Per-system attributes can be defined here. The self' and inputs'
|
||||
# module parameters provide easy access to attributes of the same
|
||||
# system.
|
||||
|
||||
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
||||
packages.default = pkgs.hello;
|
||||
packages.default = packages.console;
|
||||
|
||||
packages.console = with pkgs;
|
||||
buildDotnetModule {
|
||||
pname = "dotnet-nix-testing";
|
||||
version = "0.1";
|
||||
|
||||
src = ./.;
|
||||
|
||||
projectFile = "dotnet-nix-testing.sln";
|
||||
# nugetDeps = ./deps.json; # see "Generating and updating NuGet dependencies" section for details
|
||||
|
||||
# buildInputs = [
|
||||
# referencedProject
|
||||
# ]; # `referencedProject` must contain `nupkg` in the folder structure.
|
||||
|
||||
dotnet-sdk = dotnetCorePackages.sdk_9_0;
|
||||
dotnet-runtime = dotnetCorePackages.runtime_9_0;
|
||||
|
||||
executables = ["console"]; # This wraps "$out/lib/$pname/foo" to `$out/bin/foo`.
|
||||
# executables = []; # Don't install any executables.
|
||||
|
||||
# packNupkg = true; # This packs the project as "foo-0.1.nupkg" at `$out/share`.
|
||||
|
||||
# runtimeDeps = [ffmpeg]; # This will wrap ffmpeg's library path into `LD_LIBRARY_PATH`.
|
||||
|
||||
meta.mainProgram = "console";
|
||||
};
|
||||
|
||||
devShells.default = with pkgs;
|
||||
mkShell
|
||||
{
|
||||
@@ -38,7 +65,6 @@
|
||||
(
|
||||
with dotnetCorePackages;
|
||||
combinePackages [
|
||||
sdk_8_0
|
||||
sdk_9_0
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user