Conversation
2ac41d4 to
34e371a
Compare
34e371a to
f0f6917
Compare
|
|
I suggest splitting the commit into 2 to facilitate review and understanding later on:
|
| ++ optionals (waylandSupport && dmenuSupport) [ ydotool dmenu-wayland ] | ||
| ++ optionals (x11Support && dmenuSupport) [ xdotool dmenu ] | ||
| ); | ||
| solutions = { |
There was a problem hiding this comment.
My impression is that this is very complex. The original file was 168 lines long which seems quite large already for a small tool such as pass. The new version contains 306 lines. I agree many added lines are just comments but these comments increase the impression of complexity: there is no reason to comment something simple in my opinion.
I would prefer an upstream patch grouping all external tool references into functions or variables. Then nixpkgs can just patch these lines. The result would be simpler and upstream would be better too.
There was a problem hiding this comment.
there is no reason to comment something simple in my opinion.
As in outer, this is a draft of a change that uses an API that most of the maintainers/mentioned are likely not familiar with yet. The comments are for this audience, and I expect to pare them back to whatever the maintainers find helpful if the work moves forward.
My impression is that this is very complex.
This is, of course, the discussion the draft is here to start. Is a device with with all of its screws more complex than a device missing a few?
I guess I didn't make it explicit, but this draft picks from an existing patch with overlapping style/semantic changes. I expect to cross this bridge if the change gets a thumbs-up. |
|
I've tried this during the previous days and everything seems to work fine for me. |
Opening this as a draft to start a conversation (I'm hopefully over-@ing--feel free to opt out):
This PR repackages pass with resholve, a tool I develop to improve Shell packaging in Nixpkgs. resholve identifies unspecified dependencies, and rewrites external invocations to absolute paths so that end-users of Shell projects don't need to manually add dependencies to their system/user packages.
I'm hoping to (eventually) get to a simple yes/no on the change (and confirmation that it isn't breaking any of your own uses), so I'm happy to field any questions you have to help you decide.
(If we move forward, I'm happy to pick at any style/format/organization complaints you have :)
For reference
nixpkgs-reviewreports:Result of
nixpkgs-reviewrun on x86_64-darwin 11 package failed to build:
3 packages built:
(Note: qtpass failure is unrelated. It fails on segfaults in localization when sandbox is enabled. Here's my log and hydra's. It sounds like this is the same impurity issue as gnuplot_qt: fix on darwin #82815 (review))
Result of
nixpkgs-reviewrun on x86_64-linux 19 packages built:
Motivation for this change
Convert pass to use
resholvePackage.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/)nixos/doc/manual/md-to-db.shto update generated release notes