Unverified Commit 7f5f68d9 authored by Olli Helenius's avatar Olli Helenius
Browse files

jetbrains.jcef: build with Thrift 0.20.0

Upstream is incompatible with 0.21.0.
parent 5b6adb28
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
@@ -99,6 +99,21 @@ let
    .${platform};
  inherit (arches) depsArch projectArch targetArch;

  thrift20 = thrift.overrideAttrs (old: {
    version = "0.20.0";

    src = fetchFromGitHub {
      owner = "apache";
      repo = "thrift";
      tag = "v0.20.0";
      hash = "sha256-cwFTcaNHq8/JJcQxWSelwAGOLvZHoMmjGV3HBumgcWo=";
    };

    cmakeFlags = (old.cmakeFlags or [ ]) ++ [
      "-DCMAKE_POLICY_VERSION_MINIMUM=3.10"
    ];
  });

in
stdenv.mkDerivation rec {
  pname = "jcef-jetbrains";
@@ -125,7 +140,7 @@ stdenv.mkDerivation rec {
    libXdamage
    nss
    nspr
    thrift
    thrift20
  ];

  src = fetchFromGitHub {
@@ -184,7 +199,7 @@ stdenv.mkDerivation rec {
      -e 's|vcpkg_install_package(boost-filesystem boost-interprocess thrift)||' \
      -i CMakeLists.txt

    sed -e 's|vcpkg_bring_host_thrift()|set(THRIFT_COMPILER_HOST ${thrift}/bin/thrift)|' -i remote/CMakeLists.txt
    sed -e 's|vcpkg_bring_host_thrift()|set(THRIFT_COMPILER_HOST ${lib.getExe thrift20})|' -i remote/CMakeLists.txt

    mkdir jcef_build
    cd jcef_build