| 11 Jun 2024 |
Emma [it/its] ⚡️ | OH | 02:53:55 |
Emma [it/its] ⚡️ | so thats why im not able to restore nuget packages.... 🤦 | 02:54:08 |
| 15 Jun 2024 |
Emma [it/its] | hm does anyone know if Rider actually hard depends on dotnet sdk 7 or whether that can be swapped out with sdk 8? | 04:47:36 |
| 18 Jun 2024 |
| a-kenji joined the room. | 11:24:17 |
| 27 Jun 2024 |
| V. 🏳️⚧️ joined the room. | 11:40:04 |
V. 🏳️⚧️ | Redacted or Malformed Event | 11:41:01 |
V. 🏳️⚧️ | Redacted or Malformed Event | 11:42:55 |
| V. 🏳️⚧️ left the room. | 18:48:01 |
| 2 Jul 2024 |
| belvaleth joined the room. | 09:07:21 |
| Saeid joined the room. | 17:05:09 |
| Saeid changed their display name from Saeid Al-Wazzan to Saeid. | 17:05:24 |
Saeid | Hello, I don't know if this is the right place to ask but I have been trying to figure out an issue for quite a long time without any luck. I made a nix flake to build my F# project and I can't get it to build with nix build. I get errors like the following:
| 17:07:22 |
Saeid | * Hello, I don't know if this is the right place to ask but I have been trying to figure out an issue for quite a long time without any luck. I made a nix flake to build my F# project and I can't get it to build with nix build. I get errors like the following:
error NU1101: Unable to find package runtime.any.System.Reflection. No packages exist with this id in source(s): /nix/store/kph077ikp1bvzw4yc4yxa3rnps6rn0r0-dotnet-sdk-8.0.300/sdk/8.0.300/FSharp/library-packs, nugetSource [/private/tmp/nix-build-inventory-backend-20240628.drv-0/backend/backend.sln]
| 17:07:34 |
Saeid | I did manage to generate a deps.nix that contains a line like this:
(fetchNuGet { pname = "System.Reflection"; version = "4.3.0"; sha256 = "0xl55k0mw8cd8ra6dxzh974nxif58s3k1rjv1vbd7gjbjr39j11m"; })
and my flake definition looks (partially) like this:
packages = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
in {
default = pkgs.buildDotnetModule rec {
pname = "inventory-backend";
inherit version;
src = ./backend;
projectFile = "backend.sln";
# To generate deps.nix:
#
# nix develop
# dotnet restore backend/ --packages out
# nuget-to-nix out > deps.nix
nugetDeps = ./deps.nix;
dotnet-sdk = pkgs.dotnet-sdk_8;
packNupkg = true;
};
});
| 17:10:16 |
| 3 Jul 2024 |
| Elijah Immer left the room. | 03:44:39 |
| 4 Jul 2024 |
Saeid | I managed to solve this by first setting packNupkg = false in the flake file then regenerating dependencies like:
rm ./deps.nix
touch ./deps.nix
nix build .#default.passthru.fetch-deps
./result deps.nix
Afterwards, nix build worked fine
| 09:07:37 |
Saeid | Here is what the definition looks like now, for reference:
packages = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
in {
default = pkgs.buildDotnetModule rec {
pname = "inventory-backend";
inherit version;
src = ./backend;
projectFile = "backend.sln";
# To generate deps.nix:
#
# nix develop
# dotnet restore backend/ --packages out
# nuget-to-nix out > deps.nix
# OR
# nix build .#default.passthru.fetch-deps
nugetDeps = ./deps.nix;
dotnet-sdk = pkgs.dotnet-sdk_8;
dotnet-runtime = pkgs.dotnet-aspnetcore_8;
packNupkg = false;
};
});
| 09:08:42 |
| Saeid left the room. | 12:55:19 |
| Saeid joined the room. | 12:55:35 |
| Philip Taron (UTC-8) joined the room. | 15:52:58 |
| 8 Jul 2024 |
| karlericsson joined the room. | 23:45:56 |
| karlericsson left the room. | 23:46:15 |
| 9 Jul 2024 |
| ners joined the room. | 09:26:40 |
| 13 Jul 2024 |
| rmdonaldson joined the room. | 16:26:50 |
rmdonaldson | Is anyone having success building Dotnet projects as flakes if they use dotnet tools? It appears dotnetConfigureHook always executes dotnet tool restore, which invariably fails with some version of: Version <tool version> of package <tool name> is not found in NuGet feeds. | 16:42:04 |
rmdonaldson | I guess I could omit .config/ from src through filtering, but the presence of tool restoration seems to imply it should work. Relatedly, over in F# land, this causes paket-managed deps to fail. | 16:43:28 |
| 16 Jul 2024 |
| real_z2 left the room. | 23:17:04 |
| 18 Jul 2024 |
| tewi 🏳️⚧️ joined the room. | 00:25:06 |
| zaphar_ps joined the room. | 02:34:27 |
| tewi 🏳️⚧️ changed their profile picture. | 23:50:51 |