@@ -24,13 +24,13 @@ stdenv.mkDerivation rec {
2424 substituteInPlace tests/unit-utils-io.c --replace "| O_DIRECT" ""
2525 '';
2626
27− NIX_LDFLAGS = lib.optionalString (stdenv.cc.isGNU && !stdenv.targetPlatform.isStatic) "-lgcc_s";
27+ NIX_LDFLAGS = lib.optionalString (stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) "-lgcc_s";
2828
2929 configureFlags = [
3030 "--enable-cryptsetup-reencrypt"
3131 "--with-crypto_backend=openssl"
3232 "--disable-ssh-token"
33− ] ++ lib.optionals stdenv.targetPlatform.isStatic [
33+ ] ++ lib.optionals stdenv.hostPlatform.isStatic [
3434 "--enable-static-cryptsetup"
3535 ];
3636