flake.nix: add macOS (Darwin) support#393
flake.nix: add macOS (Darwin) support#393randomizedcoder wants to merge 1 commit intoespotek-org:masterfrom
Conversation
- Add platform detection for Darwin vs Linux - Handle different libdfuprog paths and extensions (.so/.dylib) - Use appropriate library path env var (LD_LIBRARY_PATH/DYLD_LIBRARY_PATH) - Handle binary name differences (labrador/Labrador) - Install icons and desktop files only on Linux - Use sysctl fallback for CPU count on macOS - Update platforms to include darwin
|
If it's not possible to test on macOS, I think we just keep support limited to Linux. |
|
Makes sense. If we do find somebody with Darwin, then it would be great to test it! |
While this is "developer speak" I believe it means any macOS or iOS version should work for testing. |
|
@randomizedcoder I have never heard of NixOS before and had just a little bit of reading. Therefore I ask myself: |
|
If you are still using a non-deterministic operation system (e.g. Debian or Ubuntu), then it's definitely time to try NixOS I submitted the pull request a while back Looks like I need to fix the pull request |
|
Let us know when both PRs are ready to go and we can merge them together. |
G'day Chris,
I just created the nixpkgs pull request, so it will be easy for people to see Labrador is supported by Nixpkgs. Once merged it will also sort of make the Flake redundant.
NixOS/nixpkgs#477199
However, I noticed that I would also improve the platform support adding Darwin to the flake.
I don't have a recent Apples devices, so this is untested.
Thanks,
Dave