Unverified Commit 7abd3e8f authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #225260 from Et7f3/fix_class_group_vdf

ocamlPackages.class_group_vdf: Bump MACOSX_DEPLOYMENT_TARGET to fix build
parents 02830a65 26214bb8
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
, alcotest, bisect_ppx
}:

buildDunePackage rec {
buildDunePackage (rec {
  pname = "class_group_vdf";
  version = "0.0.4";
  duneVersion = "3";
@@ -43,8 +43,13 @@ buildDunePackage rec {
  meta = {
    description = "Verifiable Delay Functions bindings to Chia's VDF";
    homepage = "https://gitlab.com/nomadic-labs/tezos";
    broken = stdenv.isDarwin && stdenv.isx86_64;
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}
# Darwin sdk on intel target 10.12 (2016) at the time of writing. It is likely that host will be at least 10.14 (2018). This fix allow it to build and run on 10.14 and build on 10.12 (but don't run).
// lib.optionalAttrs (lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.14" && stdenv.hostPlatform.isMacOS && stdenv.hostPlatform.isx86_64) {
  preHook = ''
    export MACOSX_DEPLOYMENT_TARGET=10.14
  '';
})