| 22 Jun 2021 |
toonn | The whole "let's carry headers from previous versions along" thing too. | 13:57:05 |
toonn | I'm surprised it works. | 13:57:09 |
Alyssa Ross | since I can't test it there's probably no point me trying to package NetBSD pkill/pgrep | 13:58:07 |
Alyssa Ross | actually | 13:58:11 |
Alyssa Ross | oh Darling has a libxpc as well! | 14:06:44 |
Alyssa Ross | last commit a month ago | 14:06:59 |
Alyssa Ross | maybe we can try using that | 14:07:04 |
| 23 Jun 2021 |
Finn Behrens | Anyone here who can help me with iOS dev? I'm having trouble understanding INSendMessageIntent | 09:51:20 |
abathur | noticed someone struggling in nix/nixOS last night:
abueide ok i can't figure out how to get pkg-config to see the header files from the appleFrameworks variable for hours(edited) i'm willing to pay for a solution if anyone can figure it out https://github.com/abueide/nixpkgs/blob/godot-macos/pkgs/development/tools/godot-macos/default.nix
| 13:32:39 |
abathur | they're in here, if anyone happens to know what they're missing | 13:34:56 |
Sandro | move them into buildInputs | 13:36:28 |
Sandro | also remove appleFrameworks and do not use darwin like pkgs as inputs | 13:36:43 |
Sandro | also rev master is even for testing a bad idea | 13:37:03 |
abueide | Sandro: i get the same error whether I concatenate it to nativeBuildInputs or buildInputs. as for removing appleFrameworks and not using darwin like pkgs as inputs could you be a bit more specific on what you mean? could you give a short example? And yeah I'm just using rev master because I want to mess around with godot 4.0, and master usually has a lot of the bugfixes. but I should probably specify specific commits and update periodically | 15:19:54 |
Sandro | see this for an example https://github.com/NixOS/nixpkgs/blob/07c648a67216f2c79420ae8e912d36ef360a6500/pkgs/development/compilers/llvm/12/default.nix#L126 | 16:11:36 |
abueide | Sandro: so like this?
godot-macos = callPackage ../development/tools/godot-macos {
inherit (darwin.apple_sdk.frameworks) AppKit AudioUnit CoreFoundation CoreAudio IOKit;
};
https://github.com/abueide/nixpkgs/blob/godot-macos/pkgs/development/tools/godot-macos/default.nix
| 16:45:40 |
Sandro | yeah but that wont solve your problem | 16:49:19 |
Sandro | more stylistic for upstreaming | 16:49:27 |
abueide | yeah it didn't solve the problem, but thanks for the tip. i got. some interesting info here that might be helpful from the godot people
https://github.com/godotengine/godot/issues/49842#issuecomment-866972444 | 16:50:19 |
abueide | * yeah it didn't solve the problem, but thanks for the tip. i got some interesting info here that might be helpful from the godot people. but I don't really know how to deal with compiler flags in general letalone with nixos.
https://github.com/godotengine/godot/issues/49842#issuecomment-866972444 | 16:51:09 |
abueide | running the command he mentioned i get this:
[nix-shell:~/programming/projects/nixpkgs]$ xcrun --sdk macosx --show-sdk-path
/nix/store/9c2bh49j4jqlc9g2zn6641ab4cpp2b90-SDKs/MacOSX10.12.sdk
| 16:52:52 |
abueide | but for some reason the only library inside of it is the "core services" one:
/nix/store/9c2bh49j4jqlc9g2zn6641ab4cpp2b90-SDKs/MacOSX10.12.sdk/System/Library/CoreServices | 16:53:42 |
Sandro | In reply to @abueide:matrix.org running the command he mentioned i get this: [nix-shell:~/programming/projects/nixpkgs]$ xcrun --sdk macosx --show-sdk-path /nix/store/9c2bh49j4jqlc9g2zn6641ab4cpp2b90-SDKs/MacOSX10.12.sdk
yeah that wont work | 16:53:56 |
abueide | which is a problem because that's how godot detects the sdk. so is the only option to submit an upstream PR to godot? | 16:54:48 |
Sandro | we provide those paths ourselves so just patch it with a no op | 16:56:55 |
abueide | what is a no op? | 16:59:16 |
Sandro | true or something | 16:59:31 |
Sandro | but godot is a scons package. Take a look what other scons packages do https://github.com/NixOS/nixpkgs/blob/c2e3b1de8922cbd3da973ceafdfb26bbb06e3e98/pkgs/development/libraries/serf/default.nix and adapt that | 16:59:52 |
Sandro | also I would start with https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/godot/default.nix and adapt it for mac | 17:00:22 |
abueide | ok thanks i have some ideas of things to try now | 17:01:13 |