-
-
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
cannot pass in spaces with --add-flags with makeBinaryWrapper #330471
Comments
Yup it was me |
Basically this is a limitation when we don't use |
Hmm, we could add |
Can you give an example of why this would be useful? |
Whenever you need to overwrite some cli arguments and those arguments contain spaces. |
i don't understand how |
You're right, it doesn't matter for the current implementation. Though, with structuredAttrs we could implement makeWrapper differently, using derivation arguments. E.g. stdenv.mkDerivation {
...
wrapPrograms = [
{
path = "bin/example";
addFlags = [ "--cmd" "foo bar" ];
}
];
} |
Describe the bug
It seems it's impossible to pass argument that contains space with makeBinaryWrapper. With makeShellWrapper it's possible with
--add-flags '"a b"'
. But makeBinaryWrapper splits it as two arguments"a
andb"
.User
@gerg-l:matrix.org
on matrix proposed to add--add-flag
to bypass split by space on--add-flags
.I'm guessing it might be @Gerg-L?
Steps To Reproduce
I've made a derivation for testing:
default.nix
shell.nix
Run with
nix-shell --run example
.Expected behaviour
It should be possible to add/append spaces as arguments to wrapped program.
Notify maintainers
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: