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 29, 2024
1 parent c7381e7 commit 7d39df6
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 7d39df6

Please sign in to comment.