python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / vc / default.nix
blob559ef8d20700611841e12bb71c526ac4d2b8637f
1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "Vc";
5   version = "1.4.3";
7   src = fetchFromGitHub {
8     owner = "VcDevel";
9     repo = "Vc";
10     rev = version;
11     sha256 = "sha256-fv0FHAl0xvAFybR/jwhX2LkozwEDy1TNcbVAmRRnLVU=";
12   };
14   nativeBuildInputs = [ cmake ];
16   postPatch = ''
17     sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake
18     sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake
19   '';
21   meta = with lib; {
22     description = "Library for multiprecision complex arithmetic with exact rounding";
23     homepage = "https://github.com/VcDevel/Vc";
24     license = licenses.bsd3;
25     platforms = platforms.all;
26     maintainers = with maintainers; [ abbradar ];
27   };