nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #225260 from Et7f3/fix_class_group_vdf

ocamlPackages.class_group_vdf: Bump MACOSX_DEPLOYMENT_TARGET to fix build

authored by

Weijia Wang and committed by
GitHub
7abd3e8f 02830a65

+7 -2
+7 -2
pkgs/development/ocaml-modules/class_group_vdf/default.nix
··· 4 4 , alcotest, bisect_ppx 5 5 }: 6 6 7 - buildDunePackage rec { 7 + buildDunePackage (rec { 8 8 pname = "class_group_vdf"; 9 9 version = "0.0.4"; 10 10 duneVersion = "3"; ··· 43 43 meta = { 44 44 description = "Verifiable Delay Functions bindings to Chia's VDF"; 45 45 homepage = "https://gitlab.com/nomadic-labs/tezos"; 46 - broken = stdenv.isDarwin && stdenv.isx86_64; 47 46 license = lib.licenses.mit; 48 47 maintainers = [ lib.maintainers.ulrikstrid ]; 49 48 }; 50 49 } 50 + # 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). 51 + // lib.optionalAttrs (lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.14" && stdenv.hostPlatform.isMacOS && stdenv.hostPlatform.isx86_64) { 52 + preHook = '' 53 + export MACOSX_DEPLOYMENT_TARGET=10.14 54 + ''; 55 + })