| 14 Aug 2025 |
GGG | that's because you're including the deps.json into your project, you should exclude it from the projects by editing the .csproj or by filtering them out of src | 20:25:35 |
oatmealraisin | *
let
Application = import ../Application { pkgs = pkgs; };
DataMatrixGenerator = import ../../utils/DataMatrixGenerator { pkgs = pkgs; };
Infrastrcture = import ../Infrastructure { pkgs = pkgs; };
WebUI = import ../WebUI { pkgs = pkgs; };
in
pkgs.buildDotnetModule {
pname = "API.csproj";
version = "0.1";
src = ../..;
projectFile = "src/API/API.csproj";
buildInputs = [
Application
DataMatrixGenerator
Infrastrcture
WebUI
];
dotnetPackFlags = [ "-p:RuntimeIdentifier=linux-x64" ];
nugetDeps = ./deps.json;
packNupkg = false;
}
| 20:25:36 |
GGG | I don't recommend embedding the nix files into your source like that, I'd put them into a separate directory where they don't mix with the code | 20:26:15 |
Corngood | Hmm, maybe we can use dotnet sln list to check for a solution | 20:34:22 |
oatmealraisin | It's kinda hard to find info on conventions around projects instead of nixos, where do you normally put your *.nix files? | 20:36:04 |
Whovian9369 | Speaking from personal experience when looking around, I commonly see flake.nix and flake.lock in the root of the repository, while extra files (package.nix/default.nix, deps.json, etc) being relegated to /nix/ | 20:39:25 |
Whovian9369 | * Speaking from personal experience when looking around, I commonly see flake.nix and flake.lock in the root of the repository, while extra files (package.nix/default.nix, deps.json, etc) being relegated to a repo's /nix/ | 20:39:47 |
oatmealraisin | Alright, I'll start moving everything over there and try this again | 20:47:58 |
oatmealraisin | These builds take a pretty ridiculous amount of time, rough stuff | 20:48:15 |
Corngood | Why is it picking up deps.json? Is that a special filename in dotnet? | 20:56:52 |