softhsm is used for tests, which don't run when cross-compiling, but it was accidentally included anyway due to a mistake in the preCheck conditionals. This fixes the cross build on armv6l.
···146 ++ lib.optional (!stdenv.hostPlatform.isDarwin) hostname147 ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isMusl) softhsm;148149- preCheck =150- lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''151 # construct a dummy HOME152 export HOME=$(realpath ../dummy-home)153 mkdir -p ~/.ssh···197 # The extra tests check PKCS#11 interactions, which softhsm emulates with software only198 substituteInPlace regress/test-exec.sh \199 --replace /usr/local/lib/softhsm/libsofthsm2.so ${lib.getLib softhsm}/lib/softhsm/libsofthsm2.so200- '';0201 # integration tests hard to get working on darwin with its shaky202 # sandbox203 # t-exec tests fail on musl
···146 ++ lib.optional (!stdenv.hostPlatform.isDarwin) hostname147 ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isMusl) softhsm;148149+ preCheck = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) (150+ ''151 # construct a dummy HOME152 export HOME=$(realpath ../dummy-home)153 mkdir -p ~/.ssh···197 # The extra tests check PKCS#11 interactions, which softhsm emulates with software only198 substituteInPlace regress/test-exec.sh \199 --replace /usr/local/lib/softhsm/libsofthsm2.so ${lib.getLib softhsm}/lib/softhsm/libsofthsm2.so200+ ''201+ );202 # integration tests hard to get working on darwin with its shaky203 # sandbox204 # t-exec tests fail on musl