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
rdesktop: enable darwin support without libgssglue and credssp #58941
Conversation
|
||
configureFlags = [ | ||
"--with-ipv6" | ||
"--with-openssl=${openssl.dev}" | ||
"--disable-smartcard" | ||
]; | ||
] ++ (if stdenv.isDarwin then ["--disable-credssp"] else []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this an argument? Something like enableCredssp ? !stdenv.isDarwin
.
@@ -11,18 +11,18 @@ stdenv.mkDerivation (rec { | |||
}; | |||
|
|||
nativeBuildInputs = [pkgconfig]; | |||
buildInputs = [openssl libX11 libgssglue]; | |||
buildInputs = [openssl libX11] ++ (if stdenv.isDarwin then [] else [libgssglue]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buildInputs = [openssl libX11] ++ (if stdenv.isDarwin then [] else [libgssglue]); | |
buildInputs = [openssl libX11] | |
++ stdenv.lib.optional stdenv.isDarwin libgssglue]; |
93ea0d3
to
c735071
Compare
c735071
to
fcede9b
Compare
I think I finally got this. Would be good to verify the linux build. |
Can someone confirm |
Motivation for this change
Enables building of
rdesktop
on macOS by disabling CredSSP, releasing the dependency onlibgssglue
which fails to build on macOS.Macports and Homebrew are doing this:
macports/macports-ports@b192e83
https://github.com/Homebrew/homebrew-core/blob/master/Formula/rdesktop.rb
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)