Skip to content

Commit

Permalink
openssh: fix linkOpenSSL=false by linking libxcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfitzhenry authored and tm-drtina committed Jul 23, 2024
1 parent aeafe09 commit 9de5637
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/tools/networking/openssh/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
, withLdns ? true
, libkrb5
, libfido2
, libxcrypt
, hostname
, nixosTests
, withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl
Expand Down Expand Up @@ -63,7 +64,8 @@ stdenv.mkDerivation rec {
# https://github.com/NixOS/nixpkgs/pull/107606
++ lib.optional withKerberos pkgs.libkrb5
++ extraNativeBuildInputs;
buildInputs = [ zlib openssl libedit ]
buildInputs = [ zlib libedit ]
++ [ (if linkOpenssl then openssl else libxcrypt) ]
++ lib.optional withFIDO libfido2
++ lib.optional withKerberos libkrb5
++ lib.optional withLdns ldns
Expand Down

0 comments on commit 9de5637

Please sign in to comment.