nexusmods-app: use finalAttrs#336221
Conversation
ad465a2 to
9123192
Compare
|
Result of 2 packages built:
|
9123192 to
202726a
Compare
202726a to
9123192
Compare
There was a problem hiding this comment.
Can you explain the reasoning for this change? desktop-file-utils only contains binaries, so putting it in buildInputs seems like a no-op to me.
There was a problem hiding this comment.
I guess I thought buildInputs would populate the PATH. Thanks for clarifying! I'll revert the change.
With writeShellApplication I'd use runtimeInputs, looking at the implementation, it's doing essentially what we did before:
Is this the best/only way to populate the PATH? Is there any idiom of making the bin-path overridable via an extra attr passed to mkDerivation (i.e. a runtimeInputs)?
9123192 to
39af1d2
Compare
finalAttrs and buildInputsfinalAttrs
SuperSandro2000
left a comment
There was a problem hiding this comment.
Otherwise LGTM, good improvement
Allow overriding what is added to the PATH in the wrapper.
1a52c8c to
c8c753d
Compare
|
@MattSturgeon Everything seems to be addressed, right? Okay if I merge? |
@corngood Yes, everything should be good, thanks! 👍 |
Description of changes
finalAttrsfor recursive fixpointbuildInputsfor dependenciesFollow up to #331355, make use of the
finalAttrssupport added tobuildDotnetModulein #331398. Hopefully anything recursive in the package is now done correctly.I was unsure how to handle the relationship between
executablesandmeta.mainProgram, so I decided to define both explicitly for now. PerhapsbuildDotnetModuleshould consider settingmainProgramautomatically tohead executables?I also replaced the manual wrapper
PATHcreation withbuildInputsfor thedesktop-file-utilsdependency. AFAICT everything is still working.Related issues:
let invsrecvsfinalAttrs#315337finalAttrs.{pname,version}introducing overriding traps #310373Things 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/)cc @corngood @l0b0
Add a 👍 reaction to pull requests you find important.