-
Notifications
You must be signed in to change notification settings - Fork 105
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
error: makeCWrapper: Unknown argument --suffix-each #444
Comments
Weird, I was just hitting that as well. On phone now, but I think the problem was wide version mismatch between mach-nix and nixpkgs. Possibly bleeding nixpkgs (master branch) with mach-nix master. |
nixpkgs.url="github:nixos/nixpkgs/master"; pypi-deps-db={
|
I changed it to the stable version of nixpkgs and it worked fine. Stable version of nix-darwin, all replaced. |
It's still happening for me on
I've narrowed it down to this commit in nixpkgs NixOS/nixpkgs@7f802c7, but I'm not sure why that'd cause this issue |
Because makeBinaryWrapper isn't 100% compatible with makeWrapper. Either it must be made more compatible, or mach-nix must adapt to use the new/simpler interface. |
A "python" made with the wrapper is likely to be used as a shebang. On macOS, this requires a binary rather than another shebang'd script.
Since NixOS/nixpkgs@7f802c7 using --suffix-each is no longer supported and breaks like this: $ nix-build ./any-mach-nix-env-with-latest-nixpkgs.nix [...] <stdin>: In function 'main': <stdin>:9:6: error: #error makeCWrapper: Unknown argument --suffix-each <stdin>:10:6: error: #error makeCWrapper: Unknown argument PATH <stdin>:11:6: error: #error makeCWrapper: Unknown argument : <stdin>:12:6: error: #error makeCWrapper: Unknown argument builder for '/nix/store/41713mrzrqlq12kgfgcx10wmdvmkfh7k-python3-3.9.12-env.drv' failed with exit code 1 So replace it with multiple --suffix args, which the new makeBinaryWrapper/makeCWrapper program supports (and is compatible with the old makeWrapper). Fixes DavHau#444.
I made a PR to fix it: #445 |
Since NixOS/nixpkgs@7f802c7 using --suffix-each in makeWrapperArgs is no longer supported and breaks like this: $ nix-build ./any-mach-nix-env-with-latest-nixpkgs.nix [...] <stdin>: In function 'main': <stdin>:9:6: error: #error makeCWrapper: Unknown argument --suffix-each <stdin>:10:6: error: #error makeCWrapper: Unknown argument PATH <stdin>:11:6: error: #error makeCWrapper: Unknown argument : <stdin>:12:6: error: #error makeCWrapper: Unknown argument builder for '/nix/store/41713mrzrqlq12kgfgcx10wmdvmkfh7k-python3-3.9.12-env.drv' failed with exit code 1 So replace it with multiple --suffix args, which the new makeBinaryWrapper/makeCWrapper program supports (and is compatible with the old makeWrapper). Fixes DavHau#444.
Since NixOS/nixpkgs@7f802c7 using --suffix-each in makeWrapperArgs is no longer supported and breaks like this: $ nix-build ./any-mach-nix-env-with-latest-nixpkgs.nix [...] <stdin>: In function 'main': <stdin>:9:6: error: #error makeCWrapper: Unknown argument --suffix-each <stdin>:10:6: error: #error makeCWrapper: Unknown argument PATH <stdin>:11:6: error: #error makeCWrapper: Unknown argument : <stdin>:12:6: error: #error makeCWrapper: Unknown argument builder for '/nix/store/41713mrzrqlq12kgfgcx10wmdvmkfh7k-python3-3.9.12-env.drv' failed with exit code 1 So replace it with multiple --suffix args, which the new makeBinaryWrapper/makeCWrapper program supports (and is compatible with the old makeWrapper). Fixes DavHau#444.
nix log /nix/store/8bkvnsxz4kdkd77j9cp6irxc8j819771-python3-3.9.12-env.drv
created 258 symlinks in user environment
:9:6: error: makeCWrapper: Unknown argument --suffix-each
#error makeCWrapper: Unknown argument --suffix-each
^
:10:6: error: makeCWrapper: Unknown argument PATH
#error makeCWrapper: Unknown argument PATH
^
:11:6: error: makeCWrapper: Unknown argument :
#error makeCWrapper: Unknown argument :
^
:12:6: error: makeCWrapper: Unknown argument
#error makeCWrapper: Unknown argument
^
4 errors generated.
The text was updated successfully, but these errors were encountered: