-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
_1password: 1.1.1 -> 1.2.0 #92375
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
_1password: 1.1.1 -> 1.2.0 #92375
Conversation
In
To get |
ebb7746
to
ddfa01b
Compare
Thank you, was not aware this was a thing. Not sure how i can test this though, usually i just build my changes with |
8050499
to
6ff211c
Compare
postInstall = '' | ||
$out/bin/op completion bash > op.bash | ||
$out/bin/op completion zsh > op.zsh | ||
installShellCompletion op.{bash,zsh} | ||
''; |
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 didn't look at the rest of the derivation yet and it seems that it already has an installPhase
, so these can just go there.
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.
Hmpf, that's annoying, this is a precompiled binary, so it's not actually runnable yet. Moreover, moving this to postFixup
doesn't work either, because auto-patchelf also runs during postFixup
.
There are three obvious options, but I don't have any strong preferences:
- Do not ship the shell completions.
- Run autoPatchelf in another phase.
- Use a
patchPhase
that does everything in the correct order.
Anyone?
6ff211c
to
fb391e5
Compare
superseded by 020ff69 |
Motivation for this change
Another new 1password release. Release notes state that bash and zsh completion is added, though you have to manually enable it as per their help section. (
source <(op completion bash)
for bash,eval "$(op _completion zsh)"; compdef _op op
for zsh). Not sure if we can automate this.Added myself as a maintainer as well, as i actively use this application a lot.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)