Unverified Commit 6b38a8b8 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

yubihsm-shell: fix build for Darwin (#402868)

parents 9b2d4a01 ac2df3ea
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -62,10 +62,6 @@ stdenv.mkDerivation rec {
    NIX_CFLAGS_COMPILE="$(pkg-config --cflags libpcsclite) $NIX_CFLAGS_COMPILE"
  '';

  cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
    "-DDISABLE_LTO=ON"
  ];

  # causes redefinition of _FORTIFY_SOURCE
  hardeningDisable = [ "fortify3" ];

@@ -75,6 +71,5 @@ stdenv.mkDerivation rec {
    maintainers = with maintainers; [ matthewcroughan ];
    license = licenses.asl20;
    platforms = platforms.all;
    broken = stdenv.hostPlatform.isDarwin;
  };
}