python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / vc / 0.7.nix
blob2e13f2f46ffa16faa03974ff59b0aad5e5ff5b29
1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "Vc";
5   version = "0.7.5";
7   src = fetchFromGitHub {
8     owner = "VcDevel";
9     repo = "Vc";
10     rev = version;
11     sha256 = "190s4r2n3jsivl4j2m288j3rqmgjj6gl308hi9mzwyhcfn17q8br";
12   };
14   # Avoid requesting an unreasonable intrinsic
15   patches = lib.optional stdenv.cc.isClang ./vc_0_7_clang_fix.patch;
17   nativeBuildInputs = [ cmake ];
19   postPatch = ''
20     sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake
21     sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake
22   '';
24   meta = with lib; {
25     broken = (stdenv.isLinux && stdenv.isAarch64);
26     description = "Library for multiprecision complex arithmetic with exact rounding";
27     homepage = "https://github.com/VcDevel/Vc";
28     license = licenses.bsd3;
29     platforms = platforms.all;
30     maintainers = with maintainers; [ abbradar ];
31   };