!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

110 Members
23 Servers

Load older messages


SenderMessageTime
24 Mar 2023
@quapka:matrix.orgquapka

If anyone finds this helpful, this is how I've turned that into a flake.nix:

{
  description = "Basic .NET 7 flake";

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem
      (system:
        let pkgs = nixpkgs.legacyPackages.${system}; in
        {
          devShells.default = 
            pkgs.mkShell {
              buildInputs = with pkgs.dotnetCorePackages; [ sdk_7_0 ];

              DOTNET_ROOT = with pkgs; "${dotnet-sdk_7}";
            };
        }
      );
}

16:45:51
@quapka:matrix.orgquapka Hm, any ideas when *.nuspec file is missing? Therefore the nuget-to-nix file seems to file and consequently I can't run buildDotnetModule, becuase it requires the nugetDeps to be set. 17:32:22
26 Mar 2023
@rbutani:matrix.orgrbutani joined the room.00:33:02
14 Apr 2023
@flafydev:matrix.orgFlafy joined the room.07:32:29
@felschr:matrix.orgfelschr joined the room.18:31:55
30 Apr 2023
@huantian:huantian.devhuantian joined the room.05:32:59
@evils:nixos.devevils joined the room.14:03:23
@evils:nixos.devevils

hi, i had a go at packaging a dotnet project
i've got something, but the binary does nothing but return 255

https://github.com/NixOS/nixpkgs/commit/7d7d2bfee091dd389eb51bdac1a363cfc27643b4

14:06:06
@evils:nixos.devevilsdid i miss anything obvious? or is there a way to get a more verbose failure?14:07:05
@huantian:huantian.devhuantian

I don't see anything obvious in your code, but I'm getting a weird error when building all dotnet packages for some reason

error: builder for '/nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv' failed with exit code 139;
       last 1 log lines:
       > /nix/store/a4v3az5zmqfc2x3gyjgds5azgdhf9b54-stdenv-linux/setup: line 1560:     7 Segmentation fault      (core dumped) nuget init "/nix/store/gv7vh34zghgnmla0qjgfgzxmvjxb6k2d-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib"```
An error that I'm getting for a different derivation, getting the same for all my dotnet derivations
22:30:04
@huantian:huantian.devhuantian *

I don't see anything obvious in your code, but I'm getting a weird error when building all dotnet packages for some reason

error: builder for '/nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv' failed with exit code 139;
       last 1 log lines:
       > /nix/store/a4v3az5zmqfc2x3gyjgds5azgdhf9b54-stdenv-linux/setup: line 1560:     7 Segmentation fault      (core dumped) nuget init "/nix/store/gv7vh34zghgnmla0qjgfgzxmvjxb6k2d-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib"
```
An error that I'm getting for a different derivation, getting the same for all my dotnet derivations
22:30:09
@huantian:huantian.devhuantian *

I don't see anything obvious in your code, but I'm getting a weird error when building all dotnet packages for some reason

error: builder for '/nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv' failed with exit code 139;
       last 1 log lines:
       > /nix/store/a4v3az5zmqfc2x3gyjgds5azgdhf9b54-stdenv-linux/setup: line 1560:     7 Segmentation fault      (core dumped) nuget init "/nix/store/gv7vh34zghgnmla0qjgfgzxmvjxb6k2d-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib"

An error that I'm getting for a different derivation, getting the same for all my dotnet derivations

22:30:16
@huantian:huantian.devhuantian *

I don't see anything obvious in your code, but I'm getting a weird error when building all dotnet packages for some reason

error: builder for '/nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv' failed with exit code 139;
       last 1 log lines:
       > /nix/store/a4v3az5zmqfc2x3gyjgds5azgdhf9b54-stdenv-linux/setup: line 1560:     7 Segmentation fault      (core dumped) nuget init "/nix/store/gv7vh34zghgnmla0qjgfgzxmvjxb6k2d-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib"

An error that I'm getting for a different derivation, getting the same for all my dotnet derivations

22:30:22
@huantian:huantian.devhuantianesterdayperhaps this is a nixpkgs issue that was introduced recently? didn't find anything on it when searching y22:30:56
@huantian:huantian.devhuantian * perhaps this is a nixpkgs issue that was introduced recently? didn't find anything on it when searching yesterday22:31:01
2 May 2023
@raphi:tapesoftware.netraphiugh mkNugetSource is using mono to run nuget18:44:46
@raphi:tapesoftware.netraphipossibly related: https://lore.kernel.org/all/32f156ba80010fd97dbaf0a0cdfc84366608624d.camel@intel.com/18:46:07
@raphi:tapesoftware.netraphi * possibly related: https://lore.kernel.org/all/cb8dc31a-fef2-1d09-f133-e9f7b9f9e77a@sony.com/18:47:36
@huantian:huantian.devhuantianI suppose kernel regression would make sense for this issue, wonder if anyone has reported this for mono as well19:54:45
@huantian:huantian.devhuantian
In reply to @raphi:tapesoftware.net
ugh mkNugetSource is using mono to run nuget
I think Nuget itself is packaged with mono, as MS only seems to release a .exe for it?
19:55:30
@raphi:tapesoftware.netraphi the bug seems to only happen if the stars align. if i run nuget init outside of the nix sandbox it succeeds. i can also run a highly nontrivial mono application just fine. i can also run a tiny c program that calls mmap(... MAP_32BIT) inside of the nix sandbox. 19:56:53
@raphi:tapesoftware.netraphi yeah i was looking into it. the closest thing the .net core CLI has is dotnet nuget push which doesn't have the same semantics 19:57:15
@huantian:huantian.devhuantianWish there was a good way to git bisect through kernel versions to check if it is a regression lol20:04:10
@huantian:huantian.devhuantian* Wish there was a good way to git bisect through kernel versions to check if it is a kernel regression lol20:05:40
@huantian:huantian.devhuantian
In reply to @raphi:tapesoftware.net
yeah i was looking into it. the closest thing the .net core CLI has is dotnet nuget push which doesn't have the same semantics
Man it is so weird that the nuget CLI requires mono on linux still... I suppose ms expects people to mostly use the .net core cli?
20:19:09
3 May 2023
@magikarpz:matrix.orgmagikarpz joined the room.14:57:42
@sersorrel:matrix.orgsorrel joined the room.16:58:40
@sersorrel:matrix.orgsorrelo/ did anyone figure out whether that kernel bug is causing the nuget segfault? i asked a couple of friends to try building xivlauncher and it works for them on kernel 6.1.23, but fails for me on 6.3.0. (fwiw, the reproducer from the mailing list doesn't reproduce for me, though I didn't try running it in the nix sandbox (no idea how to do that))17:07:22
@raphi:tapesoftware.netraphi 100% confident that it's MAP_32BIT related
no evidence that it's this bug in particular
17:35:49
@federicodschonborn:matrix.orgFederico Schonborn joined the room.23:56:08

There are no newer messages yet.


Back to Room ListRoom Version: 9