-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
tunnelx: minor refactor and cleanup #243521
Conversation
4ccd72d
to
88592ff
Compare
@NixOS/darwin-maintainers I would like some help with this derivation. I'm pretty sure it's possible to run it on Darwin. @goatchurchprime Could you confirm it works on Darwin architecture? |
88592ff
to
bd7ccfc
Compare
From @Cu3PO42
I'll set platforms to Linux only. |
I do not believe Mesa should be required for this package on macOS from what I'm seeing. Investigating now though. |
Thanks :) |
This package builds but I worry I may have broken the GUI components of |
There’s also a tracking issue for Mesa on Darwin. |
I have no clue, maybe @goatchurchprime can help ? |
Okay, I source dived and checked the diff --git a/pkgs/applications/gis/tunnelx/default.nix b/pkgs/applications/gis/tunnelx/default.nix
index 174796b3bf5..21cc485e752 100644
--- a/pkgs/applications/gis/tunnelx/default.nix
+++ b/pkgs/applications/gis/tunnelx/default.nix
@@ -36,9 +36,10 @@ stdenv.mkDerivation (finalAttrs: {
mkdir -p $out/bin $out/java
cp -r symbols Tunnel tutorials $out/java
+ # `SURVEX_EXECUTABLE_DIR` must include trailing slash
makeWrapper ${jre}/bin/java $out/bin/tunnelx \
--add-flags "-cp $out/java Tunnel.MainBox" \
- --set SURVEX_EXECUTABLE_DIR ${lib.getBin survex}/bin \
+ --set SURVEX_EXECUTABLE_DIR ${lib.getBin survex}/bin/ \
--set TUNNEL_USER_DIR $out/java/
runHook postInstall
diff --git a/pkgs/applications/misc/survex/default.nix b/pkgs/applications/misc/survex/default.nix
index b23cd02220b..6f2098ea477 100644
--- a/pkgs/applications/misc/survex/default.nix
+++ b/pkgs/applications/misc/survex/default.nix
@@ -45,14 +45,16 @@ stdenv.mkDerivation rec {
buildInputs = [
ffmpeg
glib
- libGLU
- mesa
proj
wxGTK32
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Carbon
Cocoa
] ++ lib.optionals stdenv.hostPlatform.isLinux [
+ # TODO: libGLU doesn't build for macOS because of Mesa issues
+ # (#233265); is it required for anything?
+ libGLU
+ mesa
libICE
libX11
]; |
bd7ccfc
to
3ecdb1d
Compare
Unbelievable work, completely unexpected and brilliant. Thank you so much! |
I was feeling a little bit concerned for merging the related pr too quickly and noticing too late that I missed plenty of things to do ... And in the meantime, the Darwin maintainers improved the Darwin support :) |
Follow up of #239739
Description of changes
Things done
sandbox = true
set 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/
)