Conversation
| hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; | ||
|
|
||
| preBuild = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) '' | ||
| MACOSX_DEPLOYMENT_TARGET=10.16 |
There was a problem hiding this comment.
Does this has any effect? You are not using export here so it would be only accessible to bash but no child processes.
There was a problem hiding this comment.
All I can say is that without it the build doesn't work on my aarch64-darwin machine and there are other packages that use the same approach in preBuild and preConfigure. I don't know if the fact that this works is accidental or not.
|
There is a different PR that also aims to fix this but in a different way: #137512. It was was also never merged. |
|
I actually saw this PR but I must've forgotten about it since then. If the other PR does it in a proper way I will happily close this one. |
|
I think the other PR is more future-proof. I don't know why it's not being merged though. |
|
I'll close this one again then |
Motivation for this change
I don't want to steal someone else's work but I was about to create a PR to bump
kittyto0.24.0but then I was reminded that it doesn't even build on myaarch64-darwinmachine. But someone else had already fixed that, the PR was just never merged and eventually closed by the creator. I tried the fix on my machine and it works, so I thought I'd create a new PR for it. Feel free to close mine and re-open yours or I can also make you co-author, or main author (if that's possible) of the commit. @bobrikThings 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