!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1155 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org184 Servers

Load older messages


SenderMessageTime
27 Dec 2025
@emilazy:matrix.orgemilyah, this is using crane?23:32:39
@flokli:matrix.orgflokli crate2nix, see the snix/Cargo.nix file, and snix/default.nix calling into it 23:33:15
@flokli:matrix.orgflokliI'll check if adding bindgenHook helps23:33:53
@emilazy:matrix.orgemilyI doubt it will23:34:21
@emilazy:matrix.orgemily since I think crate2nix works entirely differently(?) 23:34:27
@emilazy:matrix.orgemily I'd be tempted to sanity check with rustPlatform.buildRustPackage because my intuition would be crate2nix is doing something messed up here that is breaking the cc crate etc. 23:34:49
@emilazy:matrix.orgemily(it's also probably not bindgen on a second look)23:35:19
@flokli:matrix.orgfloklimmm23:37:15
@emilazy:matrix.orgemilydid this stop working at some specific point or did it just never work?23:39:38
@griff79:matrix.orggriff emily: a cargo update added aws-lc as a transitive dependency and that broke things 23:40:37
@emilazy:matrix.orgemilyI see23:41:34
@emilazy:matrix.orgemily I remember there being some thing with aws-lc-sys in the past but not what it was 23:41:55
@emilazy:matrix.orgemilyuh, hm23:42:29
@emilazy:matrix.orgemily error occurred in cc-rs: command did not execute successfully (status code exit status: 1): env -u […] 23:42:41
@emilazy:matrix.orgemily oh, it's only unsetting IPHONEOS_DEPLOYMENT_TARGET 23:42:53
@emilazy:matrix.orgemily flokli: try adding cmake to nativeBuildInputs 23:45:38
@emilazy:matrix.orgemily it seems like we have that for some aws-lc-sys-using packages in-tree and https://github.com/aws/aws-lc-rs/tree/e0aa4187a8e00e2ec69dc4efb8a10a824863f586/aws-lc-sys/builder suggests it has entirely different build backends for both 23:46:09
@emilazy:matrix.orgemily if it works I guess we'd want to upstream it into pkgs/build-support/rust/default-crate-overrides.nix 23:46:38
@flokli:matrix.orgflokli it still complains about not finding type name u_int etc, even with cmake in there 23:56:37
@emilazy:matrix.orgemily does the log change at all? e.g. the line cargo:warning=Building with: CC 23:57:39
@emilazy:matrix.orgemily oh to be clear cmake needs to be provided to the aws-lc-sys derivation 23:57:52
@emilazy:matrix.orgemilynot any Snix one23:57:53
@emilazy:matrix.orgemilyso you'll need to define it in the crates overrides or etc.23:57:59
@emilazy:matrix.orgemily (because crate2nix splits up crate builds) 23:58:10
@flokli:matrix.orgflokliyes, that's what I did23:58:12
@flokli:matrix.orgfloklihttps://paste.linuxlounge.net/RE23:59:23
28 Dec 2025
@flokli:matrix.orgfloklihttps://paste.linuxlounge.net/LE <- new build log with cmake00:00:19
@flokli:matrix.orgflokli(I really need to fix my workflow, being able to ssh to this machine)00:00:32
@emilazy:matrix.orgemily can you try setting AWS_LC_SYS_CMAKE_BUILDER in the environment variables? 00:03:16
@flokli:matrix.orgflokliit seems to build!00:05:08

Show newer messages


Back to Room ListRoom Version: 6