!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture

212 Members
Discussions about Nixpkgs' architecture - https://github.com/NixOS/nixpkgs/labels/architecture50 Servers

Load older messages


SenderMessageTime
9 Jan 2025
@lucasew:matrix.orgLucas EduardoI was able to do the validation standalone in a simple CLI app 12:20:53
@lucasew:matrix.orgLucas EduardoI linked it on the PR 12:21:04
@lucasew:matrix.orgLucas EduardoNow I just need to integrate it into the PR 12:21:20
@lucasew:matrix.orgLucas EduardoMaybe tweak up a little the message12:21:52
@infinisil:matrix.orginfinisil

@lucasew:matrix.org I hope you saw https://github.com/NixOS/nixpkgs-vet/pull/145#discussion_r1908639140 :)

12:55:32
@lucasew:matrix.orgLucas EduardoI saw it and it will help a lot 12:58:14
@lucasew:matrix.orgLucas EduardoThank you 12:58:16
@lucasew:matrix.orgLucas EduardoI rebased my PR on this but I am having a difficulty in this final part14:35:22
@lucasew:matrix.orgLucas Eduardohttps://github.com/NixOS/nixpkgs-vet/pull/142#discussion_r190892054614:36:13
@lucasew:matrix.orgLucas EduardoI created the comment for the permalink14:36:22
@lucasew:matrix.orgLucas EduardoI think I got it but 15:10:34
@lucasew:matrix.orgLucas EduardoThere is a path issue15:10:43
10 Jan 2025
@lucasew:matrix.orgLucas EduardoWell, the tests are running lol02:34:25
@lucasew:matrix.orgLucas EduardoBut I still think I didnt got it right02:34:36
@lucasew:matrix.orgLucas EduardoMaybe if we move the part of blockage of rules to the problems themselves and then the validators deliver those problems directly then when collecting them we filter for only files or attrsets or stuff like that that had an issue 02:38:13
@lucasew:matrix.orgLucas EduardoIt's happening03:13:40
@hsngrmpf:matrix.orgDavHau

Hey Folks, I have a question regarding splicing.

I am recently hunting cross related issues and I'm trying to wrap my head around why it works how it works.

My question is: Why do we add __spliced to packages by traversing the top-level?
eg, why is splicing not done in mkDerivation? Why is not every package spliced by default? Wouldn't that be simpler?

The problems I currently see:

  • Everything that is not in the top level package set is not spliced.
  • dynamic interactions like overrides seem to break splicing (no __spliced after overriding).

It seems to me that this would not be an issue if mkDerivation itself would take care of the splicing. But probably I'm missing something and I would like to understand what.

John Ericson infinisil Robert Hensing (roberth)

03:58:21
@connorbaker:matrix.orgconnor (he/him) (UTC-7) joined the room.04:41:29
@xanderio:bitflip.jetztxanderio joined the room.09:16:16
@kjeremy:matrix.orgkjeremy joined the room.13:30:18
11 Jan 2025
@lucasew:matrix.orgLucas Eduardo
In reply to @hsngrmpf:matrix.org

Hey Folks, I have a question regarding splicing.

I am recently hunting cross related issues and I'm trying to wrap my head around why it works how it works.

My question is: Why do we add __spliced to packages by traversing the top-level?
eg, why is splicing not done in mkDerivation? Why is not every package spliced by default? Wouldn't that be simpler?

The problems I currently see:

  • Everything that is not in the top level package set is not spliced.
  • dynamic interactions like overrides seem to break splicing (no __spliced after overriding).

It seems to me that this would not be an issue if mkDerivation itself would take care of the splicing. But probably I'm missing something and I would like to understand what.

John Ericson infinisil Robert Hensing (roberth)

What is the deal with splicing? What is it? Is there any doc around the concept?
22:44:45
@philiptaron:matrix.orgPhilip Taron (UTC-8)It's not a doc, but I found this whole thread worth reading. https://discourse.nixos.org/t/frustrations-about-splicing/4960723:00:25
12 Jan 2025
@strutztm:strutztm.de@strutztm:strutztm.de joined the room.00:25:08
14 Jan 2025
@roberthensing:matrix.orgRobert Hensing (roberth)I'm not aware of any blockers, but it's the kind of thing where not many of the possible solutions are correct...08:24:13
15 Jan 2025
@ss:someonex.netSomeoneSerge (Ever OOMed by Element) changed their display name from SomeoneSerge (utc+3) to SomeoneSerge.19:02:41
16 Jan 2025
@fliegendewurst:matrix.orgFliegendeWurst (@GPN23) joined the room.09:38:55
@lucasew:matrix.orgLucas Eduardointeresting nixpkgs-vet only reports an error in ratchet if the error was introduced by the change if the error appeared in base and main has changed in a way that it didn't change the error state it will not raise a failure like if you change code that is in tree of a top level with lib, the bad state is already there so if someone touches that code in any way it will not be reported it will only report if the issue wasn't happening on that file and the change introduced it interesting18:22:17
@lucasew:matrix.orgLucas Eduardo* interesting nixpkgs-vet only reports an error in ratchet if the error was introduced by the change if the error appeared in base and main has changed in a way that it didn't change the error state it will not raise a failure like if you change code that is in tree of a top level with lib, the bad state is already there so if someone touches that code in any way it will not be reported it will only report if the issue wasn't happening on that file and the change introduced it 18:22:26
@lucasew:matrix.orgLucas Eduardoactually what I wanted was for it to notify about the error if any code inside a top level with is changed, but if it's not necessary it's fine by me18:24:31
@qyliss:fairydust.spaceAlyssa Rossthat sounds like it would be extemely annoying to anybody making changes that are not refactorings19:35:35

Show newer messages


Back to Room ListRoom Version: 9