-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nexusmods-app: use finalAttrs
#336221
nexusmods-app: use finalAttrs
#336221
Conversation
ad465a2
to
9123192
Compare
Result of 2 packages built:
|
9123192
to
202726a
Compare
202726a
to
9123192
Compare
]; | ||
|
||
buildInputs = [ desktop-file-utils ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
export PATH="${lib.makeBinPath runtimeInputs}:$PATH" |
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 buildInputs
finalAttrs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
finalAttrs
for recursive fixpointbuildInputs
for dependenciesFollow up to #331355, make use of the
finalAttrs
support added tobuildDotnetModule
in #331398. Hopefully anything recursive in the package is now done correctly.I was unsure how to handle the relationship between
executables
andmeta.mainProgram
, so I decided to define both explicitly for now. PerhapsbuildDotnetModule
should consider settingmainProgram
automatically tohead executables
?I also replaced the manual wrapper
PATH
creation withbuildInputs
for thedesktop-file-utils
dependency. AFAICT everything is still working.Related issues:
let in
vsrec
vsfinalAttrs
#315337finalAttrs.{pname,version}
introducing overriding traps #310373Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
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 @corngood @l0b0
Add a 👍 reaction to pull requests you find important.