-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Description
Issue description
Some NuGet packages include native binaries inside of them for various purposes - ie. see Grpc.Tools.
Using them in NixOS is currently impossible, since these binaries are compiled for a normal FHS linux system, and fail on NixOS.
Two additional features are needed for usage of such binaries to improve in NixOS:
-
Support in
buildDotnetModulebuildDotnetModuleshould automatically runpatchelfon all found binaries in
the restored nuget dependencies. This would allow easy support innixpkgs -
Support when running bare
dotnetcommandThis one is a lot more trickier. When running native
dotnetcommand (outside the
scope of a Nix build),patchelfshould automatically patch restored nuget packages.This is a lower priority feature, mainly aimed at developer egonomics. It would
be also a lot harder to implement. Ideas welcome.
Steps to reproduce
Try to create and build any .NET project that uses nuget packages with native binaries
(ie. eventstore)
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.