Made my first nix flake library: nix-nuget-feed.
Here is the problem-solution statement on the readme:
Imagine you have a .NET project A that is a dependency of another project B via NuGet. If you have buildDotnetModule derivations for both, then simply give A’s derivation packNupkg = true and pass it to B’s projectReferences. nix build .#B works perfectly.
However this only works when building through nix. There is no way to use dotnet build, dotnet restore, dotnet run, etc. and have them see those same nix-derived nuget packages. This means your local dotnet tooling and your nix derivations are operating on different package graphs, this can hide bugs and makes iterative development painful.
nix-nuget-feed solves this by repacking your nix-derived nuget packages and exposing them as a local NuGet feed in your dev shell. The packages your local dotnet commands restore from are the exact same derivations your nix build uses.
Let me know if there are any issues, or if another solution is out there.