!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

222 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture51 Servers

Load older messages


SenderMessageTime
1 Feb 2024
@qyriad:matrix.org@qyriad:matrix.orgI don't know about the others though00:32:35
@raitobezarius:matrix.orgraitobezariusI am aware of stdenv non derived by nixpkgs and those are completely different beast having their own semantics01:42:51
@raitobezarius:matrix.orgraitobezariusBefore documenting what is a valid nixpkgs abiding stdenv, I think if we can document how to derive more complicated stdenv using combinators, that'd be great01:43:10
@raitobezarius:matrix.orgraitobezariusDocumenting a valid nixpkgs abiding stdenv is bound to be very complicated notably due to splicing constraints, etc. which are not even totally clear for experts01:43:29
@qyriad:matrix.org@qyriad:matrix.org
In reply to @aliarokapis:matrix.org
I am not sure if that is the case with llvmPackages.stdenv and there are also some other stdenvs with other compilers both in stdenv and in various third party flakes.
* LLVM's stdenvs are overrideCCs on base stdenv: https://github.com/NixOS/nixpkgs/blob/e4f711a40e2124d11f84c3e67443d02fa413a634/pkgs/development/compilers/llvm/16/default.nix#L319
02:05:09
@jade_:matrix.org@jade_:matrix.org
In reply to @aliarokapis:matrix.org
Yea I mean compatible with mkDerivation and other nixpkgs assumptions like the isPlatform checks and others
I'm very suspicious of if that's actually well defined at all, there's some extremely tight coupling, especially with respect to the (imo) pretty evil stuff stdenv does with security hardening flags
02:41:41
@aliarokapis:matrix.orgAlexandros Liarokapis
In reply to @raitobezarius:matrix.org
Documenting a valid nixpkgs abiding stdenv is bound to be very complicated notably due to splicing constraints, etc. which are not even totally clear for experts
This is a very good note, my main usecase currently is to use standard industry toolchains for cross building so keeping derivations compatible with the cross building infra is important.
12:47:25
@aliarokapis:matrix.orgAlexandros LiarokapisUsing such external toolchains is sometimes required due to them being IEC 61508 qualified.12:53:33
@aliarokapis:matrix.orgAlexandros LiarokapisWhich allows them to be used in automotive and similar sectors, so it is good to have an escape hatch to use your own stdenv. Nix would be a great pitch for such sectors due to facilitating reproducible builds but this is kind of a game breaker because verifying compilers is expensive.12:57:07
@raitobezarius:matrix.orgraitobezariusIf this is your usecases, I'd build various checks to ascertain that no non IEC 61508 component is used and fail the evaluation if so12:59:20
@raitobezarius:matrix.orgraitobezariusThen you can build your compliant stdenv12:59:27
@aliarokapis:matrix.orgAlexandros LiarokapisMy point is that it's kind of underspecified what consists of a valid stdenv. Ideally the custom stdenv is also compatible with the usual cross building infra which means proper splicing and derivations shouldn't need to change much at least for compatible components that are buildable with both stdenvs. But I know this whole thing is not trivial to even document.13:04:36
3 Feb 2024
@raboof:matrix.orgraboof changed their display name from raboof to raboof @FOSDEM.07:38:34
@philiptaron:matrix.orgPhilip Taron (UTC-8)
In reply to @infinisil:matrix.org

There is one remaining problem with the current pkgs/by-name check, and this fixes it: https://github.com/NixOS/nixpkgs/pull/285089

Quite a bit of Rust code there, would appreciate a review

Done. Many comments, but only a couple that I think are worthy of spending any work on.
19:05:17
@infinisil:matrix.orginfinisil Philip Taron (UTC-8): Thanks a lot! 20:17:58
@infinisil:matrix.orginfinisilI'll get to it next week :D20:18:11
@infinisil:matrix.orginfinisil(or maybe tomorrow)20:18:20
@philiptaron:matrix.orgPhilip Taron (UTC-8)
In reply to @infinisil:matrix.org
(or maybe tomorrow)
Sounds good
21:09:16
4 Feb 2024
@bjth:matrix.orgBryan Honof changed their profile picture.11:31:18
@raboof:matrix.orgraboof changed their display name from raboof @FOSDEM to raboof.17:41:16
5 Feb 2024
@k900:0upti.meK900This is not quite a NAT issue, but I'm adding another top level package set in https://github.com/NixOS/nixpkgs/pull/28652216:27:31
@k900:0upti.meK900Would appreciate some eyes on it16:27:53
@philiptaron:matrix.orgPhilip Taron (UTC-8)
In reply to @infinisil:matrix.org
Philip Taron (UTC-8): Thanks a lot!
✅ after your updates.
19:45:08
@infinisil:matrix.orginfinisil
In reply to @philiptaron:matrix.org
✅ after your updates.
🚀
19:47:16
@philiptaron:matrix.orgPhilip Taron (UTC-8)You still have to pin the new version, right?19:47:58
@infinisil:matrix.orginfinisil Philip Taron (UTC-8): Yup 19:50:25
@infinisil:matrix.orginfinisilGotta wait for Hydra now19:50:30
@infinisil:matrix.orginfinisilShould really move that codebase to a separate repo, add some versioning on top and then rely on automatic bot updates to pin it in Nixpkgs19:51:02
@philiptaron:matrix.orgPhilip Taron (UTC-8)I think that'd be a good idea.19:51:38
@philiptaron:matrix.orgPhilip Taron (UTC-8)nixos/nixpkgs-ratchet?19:51:50

Show newer messages


Back to Room ListRoom Version: 9