buildDubPackage: split into hooks and into importDubLock#344744
buildDubPackage: split into hooks and into importDubLock#344744philiptaron merged 1 commit intoNixOS:masterfrom
Conversation
jtbx
left a comment
There was a problem hiding this comment.
From a quick glance looks good. If it works it works, I would prefer if the build support files were in a subdirectory away from the package.
|
I would suggest you to keep them inside |
592e2ca to
1563bf1
Compare
|
I reverted the part that moved from the original directories. We don't really have to do that in this PR. |
pkgs/build-support/dlang/builddubpackage/hooks/dub-build-hook.sh
Outdated
Show resolved
Hide resolved
09dc047 to
5e3e1cd
Compare
fdfc2a5 to
096b782
Compare
|
|
Could you please take a look at the |
|
Fixed. |
|
… `buildDubPackage` PR NixOS/nixpkgs#344744 introduced a breaking change in the way `dubTestFlags` are passed to `dub-check-hook.sh`.
… `buildDubPackage` PR NixOS/nixpkgs#344744 introduced a breaking change in the way `dubTestFlags` are passed to `dub-check-hook.sh`.
Description of changes
This PR splits
buildDubPackageintodub{Setup,Build,Check}HookandimportDubLockimportDubLockjust creates the directory structure that will be copied into$DUB_HOMEby the setup hook. It's not compressed.I wasn't able to include the
compilerparameter ofbuildDubPackagein the build hook, since it useslib.getExeand it has extra stripping logic attached to it.A question that still remains is: should it be
dubSetupHookordubConfigHookand which hook should it be the part of. (postPatchandpreConfigureseem like good options to me.)The API did not change, so the docs do not really have to be changed.
The default values are still marked with
? defaultValin the docs, whereas the new hooks use shell parameter expansion for defaults, but I think that's fine.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.