1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "190s4r2n3jsivl4j2m288j3rqmgjj6gl308hi9mzwyhcfn17q8br";
14 # Avoid requesting an unreasonable intrinsic
15 patches = lib.optional stdenv.cc.isClang ./vc_0_7_clang_fix.patch;
17 nativeBuildInputs = [ cmake ];
20 sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake
21 sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake
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 ];