!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

231 Members
75 Servers

Load older messages


SenderMessageTime
14 Dec 2024
@reckenrode:matrix.orgRandy Eckenrode
In reply to @rosscomputerguy:matrix.org
I'm not sure how we can have an stdenv without including CC for C packages. Including it probably makes the amount of copying and passing less because there are less duplicate lines.
It’s propagated by the autotoolsHook that you add?
18:25:08
@rosscomputerguy:matrix.orgTristan RossNot everything uses autotools18:25:35
@reckenrode:matrix.orgRandy EckenrodeThat’s an example. Meson, CMake, whatever. Default stdenv should be the same as stdenvNoCC.18:26:19
@reckenrode:matrix.orgRandy EckenrodeExplicit over implicit dependencies.18:26:30
@rosscomputerguy:matrix.orgTristan RossWe probably could experiment in the future with going stdenvNoCC by default.18:27:23
@rosscomputerguy:matrix.orgTristan RossBut it's probably not an important thing to do right now.18:27:44
@reckenrode:matrix.orgRandy EckenrodeYeah. I’d also want to look at some of the proposals for handling cross-compilation.18:29:00
@reckenrode:matrix.orgRandy EckenrodeThere’s too much magic happening right now, which is the thing I dislike. As soon as the magic stops working (or can’t be used), it gets harder to do the right thing.18:29:54
@reckenrode:matrix.orgRandy EckenrodeMy only concern with making it easier to swap out tooling is support burden. I assume this is aimed at package authors not users?18:31:41
@reckenrode:matrix.orgRandy EckenrodeBecause I absolutely do not want to waste time supporting users who want to build their Darwin packages with weird compilers/linkers/etc.18:32:16
@rosscomputerguy:matrix.orgTristan RossThe switching out of compilers in the PR I made is primarily intended for LLVM and Linux.18:36:16
@reckenrode:matrix.orgRandy EckenrodeMore constructively, how does it interact with hooks?18:36:38
@rosscomputerguy:matrix.orgTristan RossIt technically can support other compilers but personally, I intend it mostly for LLVM.18:36:49
@reckenrode:matrix.orgRandy EckenrodeRust makes heavy use of hooks to build packages. Capturing carious compilers in the hooks with a significant problem for Darwin.18:37:09
@reckenrode:matrix.orgRandy Eckenrode * 18:37:24
@rosscomputerguy:matrix.orgTristan Ross
In reply to @reckenrode:matrix.org
More constructively, how does it interact with hooks?
It doesn't, a future pr will change how linkers are used so bintools and linkers are less connected.
18:37:29
@rosscomputerguy:matrix.orgTristan RossThe future PR will more explicitly set tooling.18:37:47
@reckenrode:matrix.orgRandy Eckenrode This is more that rust.envVars.setEnv references stdenv.cc from various pkgsXY. You override the one in yours, but those remain as they were.0 18:38:41
@reckenrode:matrix.orgRandy Eckenrode * This is more that rust.envVars.setEnv references stdenv.cc from various pkgsXY. You override the one in yours, but those remain as they were. 18:38:46
@rosscomputerguy:matrix.orgTristan Ross
In reply to @reckenrode:matrix.org
Rust makes heavy use of hooks to build packages. Capturing carious compilers in the hooks with a significant problem for Darwin.
Rust in particular with LLVM will have some changes in the future so it won't need the silly way it composes a new llvmPackages
18:38:58
@rosscomputerguy:matrix.orgTristan RossI'm hoping to redo my CPU model PR as well to make CPU model changing work better between LLVM and GCC.18:40:22
@rosscomputerguy:matrix.orgTristan RossThis is prerequisite work before I try an LLVM bootstrap.18:41:01
15 Dec 2024
@rosscomputerguy:matrix.orgTristan Ross Huh, x86_64-unknown-linux-llvm was mentioned as a triplet which exists on the LLVM Discord server. I wonder if we could use that in the future. 02:19:27
@rosscomputerguy:matrix.orgTristan RossIt looks like we might be able to compile Nixpkgs for GPU's using an LLVM toolchain + libc.02:19:50
@qyliss:fairydust.spaceAlyssa RossRedacted or Malformed Event09:07:39
@rosscomputerguy:matrix.orgTristan Ross
In reply to @philiptaron:matrix.org
https://pad.lassul.us/gYaWH4LuQGeED_BUSGInQA
Been thinking, should we have a project board on GitHub? Something like Jira so we can organize and stage stuff. The pad you made made me think of it since it has a similar section. Plus it could make planning large changes easier.
18:20:29
16 Dec 2024
@keiichi:matrix.orgteto joined the room.11:30:04
17 Dec 2024
@reckenrode:matrix.orgRandy EckenrodeCould this toolchain stuff be used with Windows? MinGW LLVM is a thing. There’s one project I want to package (dxmt) that requires it.16:43:03
@k900:0upti.meK900We have a mingw gcc toolchain16:59:01
@rosscomputerguy:matrix.orgTristan Ross
In reply to @reckenrode:matrix.org
Could this toolchain stuff be used with Windows? MinGW LLVM is a thing. There’s one project I want to package (dxmt) that requires it.
Theoretically, it just requires updating where the compiler gets set inside the stdenv and updating the lib to adjust defaults.
17:25:41

Show newer messages


Back to Room ListRoom Version: 9