-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
xss-lock: improve locker options passing #61311
Conversation
cc @Ma27 who is listed maintainer of the |
- allow locker options without hacks - add extraOptions
a482f7a
to
7fef2e3
Compare
@GrahamcOfBorg test xss-lock |
Bt win case another maintainer sees this: I'd like to add a simple testcase for the example provided above before merging this, but I'm slightly busy with other stuff now, so it would be great if you could be patient until I've pushed that :) |
I really appreciate how responsive (and fast) you were. There's no need to rush this imo. Better right than right now. Also, let me know if I should change or do something extra here. I'm interested in learning how to work with nixpkgs so I can contribute more in the future. |
* Don't use `literalExample`, raw Nix values can directly be specified as an option example which provides support for highlighting in the manual as well. * Escape shell args for `extraOptions`: I.e. the `-n` option might be problematic as a longer notification command might be misinterpreted.
@GrahamcOfBorg test xss-lock |
@turboMaCk thanks! |
Noob alert: This is my first PR to nixpkgs.
Motivation for this change
Currently, command line arguments can't be passed in
locker
easily without workarounds.This is because xss-lock doesn't recognize these are locker arguments.
Things done
In short:
Locker is now separated by
--
. Because of this one can no longer abuselocker
option to pass arguments toxss-lock
and therefore new optionextraOptions
was added to pass options toxss-lock
This is a breaking change for configurations which used workaround described
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)