Nix + dotnet | 126 Members | |
| 24 Servers |
| Sender | Message | Time |
|---|---|---|
| 5 Dec 2024 | ||
or just outright modify fetch-deps to do that and then revert it after I finish running it | 22:41:58 | |
In reply to@gggkiller:matrix.org rg buildDotnetModule | 22:43:31 | |
| Sort of a tangent, but I've taken to running
| 22:44:23 | |
| what's the issue that you're worried about by not running it normally? /genq | 22:45:09 | |
| that's a good idea | 22:45:10 | |
even more so since fetch-deps runs the packages' code, it might have untrusted code running | 22:45:32 | |
| it shouldn't but who knows | 22:45:38 | |
In reply to @corngood:corngood.comThatd be nice if all nuget packages actually had linked sources | 22:46:47 | |
|
Yeah, if I'm regenerating all lockfiles, or doing mass updates, that's a lot of peoples code being run. Lots of new packages going in without any real audits. Could end up bad either through malice or accident. | 22:47:13 | |
| well, packages from nuget can run arbitrary code on installs, projects can also run arbitrary code on the restore stage and more | 22:47:27 | |
| technically contributors should've audited it before adding all of that to nixpkgs, but you can never be too safe | 22:47:43 | |
| Hey guys, I'm trying to see if there's a way to improve experience with C# code that has any kind of native dependencies (hi Avalonia). Would love you to chime in before I jumped to experimentation: https://github.com/NixOS-NET/Nix.NET/issues/1 | 22:49:01 | |
In reply to @gggkiller:matrix.orgConcern is upstream adding fishy stuff and maintaineds just merging the auto prs | 22:49:03 | |
| Yeah, that part of the dotnet ecosystem is a mess. Actual build recipes would be the dream. My favourite recent example was finding Avalonia.BuildServices, which is on nuget.org, but they don't even release the source for it. :| https://github.com/AvaloniaUI/Avalonia/discussions/16878 | 22:50:18 | |
| that's annoying >.> | 22:51:28 | |
| also I'm just thinking about the versions situation in dotnet, it's a lot more varied than the python package ecosystem(from my POV as someone who uses python more) where there are a lot of versions of different packages in use at different times, so it may be harder to package each one individually | 22:52:26 | |
| yeah, that's also another issue | 22:52:50 | |
| I guess we're more similar to the node ecosystem in that aspect | 22:53:00 | |
| i'd be interested in maybe being able to use nix-init or a similar tool to generate initial expressions, but I don't want a single big inscrutible lockfile because that's just unmaintainable | 22:53:04 | |
| * i'd be interested in maybe being able to use nix-init or a similar tool to generate initial expressions for from-source packages, but I don't want a single big inscrutible lockfile because that's just unmaintainable | 22:53:14 | |
| I don't know how relevant this is, but the thing that comes to mind is how we patch the dll imports in the source-built version of avalonia:
| 22:53:24 | |
| (see the node-packages.nix file, and the whole reason why I'm working on reducing that) | 22:53:33 | |
| Oh wtf, i wasnt even aware of avalonia having telemetry, ew | 22:53:36 | |
| I should check tomorrow whether i still have the code for my recursive dotnet workload to nix generator | 22:55:42 | |
| we nerf it in the source-build of avalonia:
but that needs work before other packages can use it. it should just be build-time, in sandbox, but it's still shady | 22:55:48 | |
| I think it's a nice idea on paper but has a lot of issues in practice. Let's say Or maybe openssl, that has 1.1.x and 3.0 versions, which one does the package want if they only specifcy I don't think we'll be able to get rid of this anytime soon, just like Rust can't nor any other native lang really | 22:55:50 | |
even in Rust when you're using native libraries you need to set up a LD_PRELOAD_PATH env var to actually get it to work | 22:56:13 | |
| I don't think nix and dev shells will ever not be a thing | 22:56:26 | |
do you run this with sudo? for me it fails with Error mkdir: util.c:1036 create_empty_dir_as_root: Permission denied | 22:58:36 | |
| nevermind, 1 google search solved it, I'm dumb | 23:01:01 | |