writers: use callPackages to import sub-groups of writers#245785
writers: use callPackages to import sub-groups of writers#245785zimbatm merged 2 commits intoNixOS:masterfrom
callPackages to import sub-groups of writers#245785Conversation
|
|
Could you provide more explanation? I haven't tested this super thoroughly, but it works well enough to allow me to cross-compile my armv6l systems. |
|
Are you just complaining about splicing in general? I don't see what those issues specifically have to do with this case. Could you provide an example that is still broken with this PR? Just to clarify, splicing was working fine with |
|
Forget. Just fix the problems reported by ofBorg here and now, at the red X below. Until then, I will put the PR on draft mode. |
Use callPackages instead of plain import to get proper splicing. Without this, writeNginxConfig fails when cross-compiling.
e42f2f3 to
09dd973
Compare
|
|
I can't reproduce that locally, so I don't know how to fix it. |
runCommandNoCC is now an alias for runCommand, which was causing ofborg failures with allowAliases = false.
|
I figured it out; it is caused by ofborg setting |
|
thanks! sorry for the breakage |
Description of changes
Use
callPackagesinstead of plainimportto get proper splicing. Without this,writeNginxConfigfails when cross-compiling:This fixes #244835, which split the writers into multiple files.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)cc @zimbatm @Lassulus