!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

255 Members
79 Servers

Load older messages


SenderMessageTime
13 Sep 2023
@artturin:matrix.orgArtturin
In reply to @winterqt:nixos.dev

Hi all, poking my head in to confirm some weird thing.

Is it expected that libclang, if added to a derivation's nativeBuildInputs (strictDeps = false at that), will more or less completely blow up the ability to use Clang? (e.g. not being able to find any libc headers like stdbool.h.)

Diff the dumped env vars
22:31:35
@artturin:matrix.orgArtturin* In reply to @winterqt:nixos.dev Hi all, poking my head in to confirm some weird thing. Is it expected that libclang, if added to a derivation's nativeBuildInputs (strictDeps = false at that), will more or less completely blow up the ability to use Clang? (e.g. not being able to find any libc headers like stdbool.h.) Diff the dumped env vars after the setup22:31:55
@winterqt:nixos.devWinter (she/her)
In reply to@artturin:matrix.org
Diff the dumped env vars
That's what I'm doing, and nothing is different (after sorting + de-duping) that I've seen.
22:31:56
@winterqt:nixos.devWinter (she/her)It's definitely CMake-specific, but I'm still trying to figure out how, none of the CMAKE_* env vars are different in a substantial way (unless order matters, which it shouldn't).22:32:39
@artturin:matrix.orgArtturinIs this just the normal package set and not a pkgsLLVM or so22:33:00
@winterqt:nixos.devWinter (she/her)It's pkgsLLVM bc Darwin :/22:34:58
@winterqt:nixos.devWinter (she/her)FWIW I don't need it to be in nBI, I'm just trying to figure out why it breaks.22:35:23
@winterqt:nixos.devWinter (she/her)(specifically because mkShell.packages won't work then)22:35:36
@artturin:matrix.orgArtturinSo build != host?22:35:41
@artturin:matrix.orgArtturin
In reply to @winterqt:nixos.dev
(specifically because mkShell.packages won't work then)
.packages is bad anyways and the correct dependency attributes should be used
22:36:50
@winterqt:nixos.devWinter (she/her)
In reply to @artturin:matrix.org
So build != host?
build == host, this is a darwin build in a darwin machine + no strictDeps
22:50:20
@artturin:matrix.orgArtturinSo it's not pkgsLLVM22:51:52
@winterqt:nixos.devWinter (she/her)ah, that's what you were getting at22:52:49
@winterqt:nixos.devWinter (she/her) correct, it's just import nixpkgs {} 22:53:06
@winterqt:nixos.devWinter (she/her)i'll diff the remaining cmake env vars, doubt it'll come up with anything though22:54:28
@artturin:matrix.orgArtturindid you nix-diff the diffs23:26:40
@artturin:matrix.orgArtturin * did you nix-diff the drv diffs23:26:50
@artturin:matrix.orgArtturinand did you diff the envs after the cmake hook has run23:27:46
@winterqt:nixos.devWinter (she/her)yes and yes23:28:50
@winterqt:nixos.devWinter (she/her)the only thing that differs is the order of the paths in the env vars23:29:08
@winterqt:nixos.devWinter (she/her)however, something odd i noticed:23:29:19
@winterqt:nixos.devWinter (she/her) in the "everything in nBI" case, the cmake generated C_INCLUDES variable in the Makefile contains a bunch of include paths that the "everything where they should be" case doesn't have 23:30:03
@winterqt:nixos.devWinter (she/her)but there's nothing different in the env vars that would cause that, afaict23:30:16
@winterqt:nixos.devWinter (she/her)found it, i think23:47:01
@winterqt:nixos.devWinter (she/her)wow i hate computers23:47:16
14 Sep 2023
@artturin:matrix.orgArtturin
In reply to @winterqt:nixos.dev
found it, i think
What was it?
02:04:43
@winterqt:nixos.devWinter (she/her)
In reply to @artturin:matrix.org
What was it?

somewhat broken special casing in the thing i'm trying to build, plus weird (at least to me) setup hook behavior

i'm trying to figure the setup hook part out, so two questions:

we have two packages, A, and B. A has propagatedBuildInputs = [ B ]. B has a setup hook.

  1. what offset is used when you put A in buildInputs? it seems that it would be discarded because the calculated offsets are 0, 2.
  2. is it expected that if A was put into nativeBuildInputs, B's setup hook isn't ran?
13:02:47
@trofi:matrix.orgtrofi

Will cross-post here for general amusement as well:

Fun fact: nix has headers-only nlohmann_json dependency in it's output closure and pipewire has python. Chances are https://github.com/NixOS/nixpkgs/pull/255192 will fix it (more words: https://trofi.github.io/posts/298-unexpected-runtime-dependencies-in-nixpkgs.html).

22:14:07
15 Sep 2023
@artturin:matrix.orgArtturin
In reply to @trofi:matrix.org

Will cross-post here for general amusement as well:

Fun fact: nix has headers-only nlohmann_json dependency in it's output closure and pipewire has python. Chances are https://github.com/NixOS/nixpkgs/pull/255192 will fix it (more words: https://trofi.github.io/posts/298-unexpected-runtime-dependencies-in-nixpkgs.html).

Could it cause https://github.com/NixOS/nixpkgs/issues/41340
01:19:42
@artturin:matrix.orgArtturin* In reply to @trofi:matrix.org Will cross-post here for general amusement as well: Fun fact: nix has headers-only nlohmann_json dependency in it's output closure and pipewire has python. Chances are https://github.com/NixOS/nixpkgs/pull/255192 will fix it (more words: https://trofi.github.io/posts/298-unexpected-runtime-dependencies-in-nixpkgs.html). Could it cause https://github.com/NixOS/nixpkgs/issues/41340 on large closures01:20:41

Show newer messages


Back to Room ListRoom Version: 9