openssh: remove softhsm ref when cross-compiling (#431783)

authored by Colin and committed by GitHub 65f27c32 0f7a532e

+4 -3
+4 -3
pkgs/tools/networking/openssh/common.nix
··· 146 146 ++ lib.optional (!stdenv.hostPlatform.isDarwin) hostname 147 147 ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isMusl) softhsm; 148 148 149 - preCheck = 150 - lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 149 + preCheck = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ( 150 + '' 151 151 # construct a dummy HOME 152 152 export HOME=$(realpath ../dummy-home) 153 153 mkdir -p ~/.ssh ··· 197 197 # The extra tests check PKCS#11 interactions, which softhsm emulates with software only 198 198 substituteInPlace regress/test-exec.sh \ 199 199 --replace /usr/local/lib/softhsm/libsofthsm2.so ${lib.getLib softhsm}/lib/softhsm/libsofthsm2.so 200 - ''; 200 + '' 201 + ); 201 202 # integration tests hard to get working on darwin with its shaky 202 203 # sandbox 203 204 # t-exec tests fail on musl