libe-book: fix cross-compilation#419393
Conversation
b2428e4 to
c1a72c4
Compare
What's been tested:
```
nix-build -I nixpkgs=channel:nixos-unstable -E 'let pkgs = import <nixpkgs> { }; in pkgs.callPackage ./pkgs/by-name/li/libe-book/package.nix { }'
```
```
nix-build -I nixpkgs=channel:nixos-unstable -E 'let pkgs = import <nixpkgs> { crossSystem = { config = "aarch64-unknown-linux-gnu"; }; }; in pkgs.callPackage ./pkgs/by-name/li/libe-book/package.nix { }'
```
```
nom-build -I nixpkgs=channel:nixos-unstable -E 'let pkgs = import <nixpkgs> { crossSystem = { config = "riscv64-linux"; }; }; in pkgs.callPackage ./pkgs/by-name/li/libe-book/package.nix { }'
```
c1a72c4 to
cd3c21e
Compare
SFrijters
left a comment
There was a problem hiding this comment.
This fixes nix-build -A pkgsCross.aarch64-multiplatform.libe-book for me.
Maybe consider adding strictDeps = true; to prevent regressions.
Don't tell me all this time I could have just used this short command instead of
Am I tripping or is there nothing about this attribute in the Nixpkgs Manual? Where can I read more about this attribute? |
Haha, maybe, I'm not sure if there are subtle differences to what you did.
Hm, yeah, it seems to be one of those things. I guess #178468 is something you could check out? In broad strokes and as far as I understand it, So, if you put |
I assume that needs ETA: this also allows to test fixes to mltiple packages at once. |
|
I guess it is fine to merge as is then later add |
Closes #419355.
Fix broken cross-compilation.
What's been tested:
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.