Unverified Commit 34d86283 authored by Emily's avatar Emily Committed by GitHub
Browse files

various: remove code for macOS < 11 (#370995)

parents 3f49e3dc d3eee9a8
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -95,10 +95,6 @@ stdenv.mkDerivation rec {
      install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png
    '';

  preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
    export MACOSX_DEPLOYMENT_TARGET=10.13
  '';

  configureFlags =
    [
      "--with-boost-libdir=${boost.out}/lib"
+0 −4
Original line number Diff line number Diff line
@@ -92,10 +92,6 @@ stdenv.mkDerivation rec {
      install -Dm644 share/pixmaps/groestlcoin256.png $out/share/pixmaps/groestlcoin.png
    '';

  preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
    export MACOSX_DEPLOYMENT_TARGET=10.13
  '';

  configureFlags =
    [
      "--with-boost-libdir=${boost.out}/lib"
+0 −4
Original line number Diff line number Diff line
@@ -52,10 +52,6 @@ stdenv.mkDerivation rec {
    xdg-utils
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices Security ];

  preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin) ''
    export MACOSX_DEPLOYMENT_TARGET=11.0
  '';

  enableParallelBuilding = true;

  meta = with lib; {
+4 −9
Original line number Diff line number Diff line
@@ -39,12 +39,7 @@ stdenv.mkDerivation rec {
    })
  ];

  postPatch =
    lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
      substituteInPlace src/platfdep_mac.mm \
        --replace "appearance.name == NSAppearanceNameDarkAqua" "NO"
    ''
    + lib.optionalString (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isx86_64) ''
  postPatch = lib.optionalString (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isx86_64) ''
    substituteInPlace 3rd/CMakeLists.txt \
      --replace "-msse4.2 -maes" ""
  '';
+0 −4
Original line number Diff line number Diff line
@@ -74,10 +74,6 @@ stdenv.mkDerivation rec {
    "-DUSE_PULSEAUDIO:BOOL=${if pulseSupport then "TRUE" else "FALSE"}"
  ];

  env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
    "-DAPPLE_OLD_XCODE"
  ]);

  doCheck = true;

  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
Loading