!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

126 Members
24 Servers

Load older messages


SenderMessageTime
18 Dec 2024
@corngood:corngood.comCorngoodI thought all sources were equal in priority?19:40:24
@6pak:matrix.org6pakhow would that work19:40:43
@6pak:matrix.org6pakdifferent sources can have different package contents for the same version19:40:52
@6pak:matrix.org6paktbh it could error out in that case, but it doesn't19:41:02
@6pak:matrix.org6pakit just takes the first result19:41:06
@corngood:corngood.comCorngoodSo does this build a derivation? How do you make it unique on consecutive runs?19:41:23
@6pak:matrix.org6pakit relies on impure-derivations19:41:42
@corngood:corngood.comCorngoodit actually uses the first one to respond or something insane like that19:41:45
@6pak:matrix.org6pakwhich afaik makes it always rebuild19:41:47
@6pak:matrix.org6pakand allows internet access19:41:49
@corngood:corngood.comCorngoodso an impure derivation will always rebuild? interesting19:42:13
@6pak:matrix.org6pakthat seems to be happening from what I see19:42:34
@6pak:matrix.org6pakI would use --rebuild but that result in a non descriptive error for impure derivations, for some reason19:43:06
@6pak:matrix.org6pak * I would use --rebuild but that result in a non descriptive error for impure derivations, for some reason (https://github.com/NixOS/nix/issues/9782)19:43:31
@corngood:corngood.comCorngood

This is by design, sources are unordered and they are searched by order of the quickest response rather than by order of how they show up in file.

https://github.com/NuGet/Home/issues/3676

19:44:26
@6pak:matrix.org6pakhuh19:44:51
@corngood:corngood.comCorngoodI'm not sure how things have changed since then. But that was why nuget-to-nix had to check all the sources for each package :|19:45:04
@6pak:matrix.org6pakif that's still the case then thats one more reason to always use package mapping19:45:38
@6pak:matrix.org6pak * if that's still the case then thats one more reason to always use package source mapping19:45:58
@corngood:corngood.comCorngoodYou can still end up with multiple sources as options for a package19:46:22
@6pak:matrix.org6pak if that's still the case then I guess what I observed was simply the result of the first source being the first request made 19:47:10
@6pak:matrix.org6pakbecause changing the order did change which package was resolved for me19:47:34
@corngood:corngood.comCorngoodon the sandbox thing, how do you copy the output file into nixpkgs? that's one nice thing about using firejail for fetch-deps, update scripts, etc. you can easily give it write access to just the nixpkgs repo19:49:26
@6pak:matrix.org6pakouter fetch-deps script is the one invoking the sandboxed build19:50:14
@corngood:corngood.comCorngoodI guess you still run an outer script outside of the sandbox?19:50:18
@6pak:matrix.org6pakyeah19:50:23
@6pak:matrix.org6pakthe protection more is against malicious build scripts in upstream rather than nixpkgs code19:50:39
@6pak:matrix.org6pak * the protection is more against malicious build scripts in upstream rather than nixpkgs code19:50:50
@corngood:corngood.comCorngoodI wonder if anyone has discussed sandboxing of update scripts anywhere. that's basically the same thing but more widely used19:51:16
@6pak:matrix.org6pakis nixpkgs-update bot even sandboxed?19:52:46

There are no newer messages yet.


Back to Room ListRoom Version: 9