!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

397 Members
92 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
20 Aug 2024
@shymega:one.ems.host@shymega:one.ems.host left the room.13:17:42
22 Aug 2024
@jaredbaur:matrix.orgJared Baur set a profile picture.02:07:20
@wirew0rm:matrix.orgAlex changed their display name from Alexander Krimm to Alexander.13:19:41
@wirew0rm:matrix.orgAlex changed their display name from Alexander to Alex.13:20:15
@dre:imad.nycdreHey, we are considering if it's possible to add firmware to nixpkgs in this discourse thread, any feedback would be appreciated https://discourse.nixos.org/t/inclusion-of-device-firmwares-in-nixpkgs/5098016:48:22
@rick:matrix.ciphernetics.nlMindaviHaving some doubts but I'd like to hear what you think about them 🙂20:44:05
23 Aug 2024
@artturin:matrix.orgArtturin
In reply to @ss:someonex.net
Thx. This seems to have the desired effect: https://gist.github.com/SomeoneSerge/80f63f35e60fa7b5e037829b001233a3#file-test-stdenv-nix
https://github.com/NixOS/nixpkgs/pull/336837
18:56:35
24 Aug 2024
@themojken:matrix.orgthemojkenHey, I have a set of derivations that seem to work just fine as long as callPackage comes from nixpkgs, but when I switch to nixpkgs.pkgsCross.<...> it stops linking properly. The compiling works fine, but the include directories stop showing up in gcc's include path. How do I troubleshoot this?16:35:47
@k900:0upti.meK900Very likely wrong buildInputs vs nativeBuildInputs16:36:11
@themojken:matrix.orgthemojkenNo, only thing that's under native is gnumake16:36:40
@themojken:matrix.orgthemojkenHa!16:36:59
@themojken:matrix.orgthemojkenNo16:37:00
@themojken:matrix.orgthemojkenRedacted or Malformed Event16:37:05
@themojken:matrix.orgthemojkenRedacted or Malformed Event16:37:09
@themojken:matrix.orgthemojkenWelp, considering that resolved that issue, I should probably quit for today. 6:40 pm and no dinner makes for very sloppy coding.16:39:53
@themojken:matrix.orgthemojkenThanks for the help16:39:56
@themojken:matrix.orgthemojkenNow that I think of it, I ran into an issue where pkgsCross doesn't seem to have callPackageWith, so I ended up having to manually inherit the my home-made dependencies. Is there a better workaround? How come it's missing?17:44:38
@themojken:matrix.orgthemojken * Now that I think of it, I ran into an issue where pkgsCross doesn't seem to have callPackageWith, so I ended up having to manually inherit the my home-made dependencies. Is there a better workaround? How come it's missing? How hard would it be to define my own?17:44:53
@themojken:matrix.orgthemojken * No, not for that one package, where I instead inverted it...17:45:42
@k900:0upti.meK900 You probably just want to make your own scope, using makeScopeWithSplicing 17:46:48
@themojken:matrix.orgthemojken
In reply to @k900:0upti.me
You probably just want to make your own scope, using makeScopeWithSplicing
Hm, I ended up reading source code to figure out how to use it, but I came across this at it's definition:backward compatibility with old uncurried form; deprecated. What has it been replaced with?
18:55:44
@k900:0upti.meK900 makeScopeWithSplicing' I assume 18:56:02
@themojken:matrix.orgthemojken The It's still ugly, but hopefully it helps a little bit. makes it seem like it isn't an improved version of the previous, but maybe the documentation is just a bit... weird? 18:57:07
@k900:0upti.meK900Splicing is just generally very cursed18:58:01
@themojken:matrix.orgthemojken That was quite a rabbit hole, but I finally figured it out. I'm planning something cursed involving nix-store -qR on the output and scp:ing that over to the target machine, but for that I'd really prefer to remove the system suffix (in this case -armv7l-unknown-linux-gnueabihf). Is it possible to prevent that from being added? 21:24:44
@themojken:matrix.orgthemojkenThis seems like a hint https://github.com/bgamari/nixpkgs/commit/501632cc5799176a62a0c91be85c66af82a1a19f21:50:28
25 Aug 2024
@themojken:matrix.orgthemojkenIs it possible to, given a list of derivations, get all those derivations as they would be in the store but in a subdirectory? I'm currently pulling them out from my own store, but it'd be convenient to get a result dir containing the full store, to rsync that over to the destination or to archive and deploy. Basically, when evaluating a derivation, what freedoms do I have, what choices can I make?08:58:46
@themojken:matrix.orgthemojken

Heck yeah, this might work (env-var on nix-instantiate)


Overrides the location of the Nix store (default prefix/store).```
09:12:30
@themojken:matrix.orgthemojken *

Heck yeah, this might work (env-var on nix-instantiate)

NIX_STORE_DIR

Overrides the location of the Nix store (default prefix/store).```
09:12:35
@themojken:matrix.orgthemojken *

Heck yeah, this might work (env-var on nix-instantiate)

NIX_STORE_DIR

Overrides the location of the Nix store (default prefix/store).
09:12:41

Show newer messages


Back to Room ListRoom Version: 6