lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 24.11-pre 33 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "Vc"; 5 version = "0.7.5"; 6 7 src = fetchFromGitHub { 8 owner = "VcDevel"; 9 repo = "Vc"; 10 rev = version; 11 sha256 = "190s4r2n3jsivl4j2m288j3rqmgjj6gl308hi9mzwyhcfn17q8br"; 12 }; 13 14 # Avoid requesting an unreasonable intrinsic 15 patches = lib.optional stdenv.cc.isClang ./vc_0_7_clang_fix.patch; 16 17 nativeBuildInputs = [ cmake ]; 18 19 postPatch = '' 20 sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake 21 sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake 22 ''; 23 24 meta = with lib; { 25 description = "Library for multiprecision complex arithmetic with exact rounding"; 26 homepage = "https://github.com/VcDevel/Vc"; 27 license = licenses.bsd3; 28 platforms = platforms.all; 29 maintainers = with maintainers; [ abbradar ]; 30 # never built on aarch64-darwin since first introduction in nixpkgs 31 broken = (stdenv.isDarwin && stdenv.isAarch64) || (stdenv.isLinux && stdenv.isAarch64); 32 }; 33}