!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

706 Members
Rust157 Servers

Load older messages


SenderMessageTime
4 Oct 2022
@qyliss:fairydust.spaceAlyssa RossYeah, that one would be easier.17:54:45
@qyliss:fairydust.spaceAlyssa RossIn that case, you should be able to override pkgsStatic.buildPackages.rustc to also include the webassembly target with the existing package, right?17:55:32
@qyliss:fairydust.spaceAlyssa RossAnd then you'd have a compiler that could do glibc, musl, and webassembly.17:56:14
@qyliss:fairydust.spaceAlyssa RossIf there are any targets that we can turn on "for free" like webassembly, adding those by default would make sense I think17:57:13
@qyliss:fairydust.spaceAlyssa RossThat should just be a case of changing the default value of the package option, I think.17:58:00
@x10an14:matrix.orgx10an14Could I somehow configure a flake to perform its compilation steps in a (multi-layered) docker image? I can't see support for this (AFAIU) in dockerTools. Ideally I'd like my flake defined default package to be built in a docker container, then having resulting binary copied out for any final/distroless container image (the latter of which dockerTools can produce just fine.)18:05:54
@Ericson2314:matrix.orgJohn Ericson Mic92 Alyssa Ross is Rustc itself always multi-target? 19:12:38
@Ericson2314:matrix.orgJohn EricsonI wish we could just build the standard library and rustc with crate2nix and separately19:12:53
@Ericson2314:matrix.orgJohn Ericsonbypass rustbuild altogether19:13:03
@qyliss:fairydust.spaceAlyssa RossEricson2314: you give it a list of targets to support19:18:54
@Ericson2314:matrix.orgJohn Ericson Alyssa Ross: is that for building stadandard libraries or compiler features, though? 19:23:08
@Ericson2314:matrix.orgJohn Ericsonmy guess is just standard libraries19:23:21
@qyliss:fairydust.spaceAlyssa Rosswhy would it be any different than clang?19:23:41
@qyliss:fairydust.spaceAlyssa Rossand like, it has to be multi-target or cross-compiling wouldn't work19:24:21
@qyliss:fairydust.spaceAlyssa RossBecause it's the same rustc that gets used for build and host.19:24:30
@Ericson2314:matrix.orgJohn Ericsonwell i mean I htink it is unlike LLVM where you can choose what backends to build as apart of libllvm19:24:54
@Ericson2314:matrix.orgJohn EricsonI don't think rustc has very much backend-specific code, except for maybe wasm, and I think most of it is uncondiitonal19:25:16
@qyliss:fairydust.spaceAlyssa Rossso why wouldn't it be multi-target?19:25:42
@qyliss:fairydust.spaceAlyssa Rossmaybe I'm misunderstanding you19:25:46
@Ericson2314:matrix.orgJohn Ericsonwe're agreeing :)19:26:33
@qyliss:fairydust.spaceAlyssa Rossah :)19:26:42
@Ericson2314:matrix.orgJohn EricsonI did some crate2nix bare metal cross things I need to upstream more for work19:27:48
@amesgen:amesgen.deamesgen Opened a PR to support the recently introduced finalAttrs style in buildRustPackage: https://github.com/NixOS/nixpkgs/pull/194475 20:38:35
5 Oct 2022
@ralith:ralith.comRalith nix profile install 'github:martinvonz/jj' compiled everything and then failed with error: opening directory '/nix/store/m5frwjzn35zfpi1gv0ynhmj8rmjrs55s-crate-cargo2nix-0.9.0': No such file or directory. Anyone have any idea what's going on there? I don't really understand flakes or cargo2nix. 01:18:21
@marksisson:matrix.orgmarksisson joined the room.02:07:45
@rosariopulella:matrix.orgRosario Pulella joined the room.19:09:02
@colemickens:matrix.orgcolemickensHuh that's really odd, I pull jujube from that flake directly23:01:47
8 Oct 2022
@hdhog:matrix.hdhog.ruhdhog joined the room.05:41:22
@kirens:matrix.orgkirens joined the room.09:36:04
9 Oct 2022
@figsoda:matrix.orgfigsodaWhat do you guys think about deprecating carnix and cratesIO? https://github.com/NixOS/nixpkgs/issues/19527920:45:36

There are no newer messages yet.


Back to Room ListRoom Version: 6