at master 33 lines 718 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "Vc"; 10 version = "1.4.5"; 11 12 src = fetchFromGitHub { 13 owner = "VcDevel"; 14 repo = "Vc"; 15 rev = version; 16 sha256 = "sha256-A2qUzjXv50unFcoZp2nRVinkph+CoHyiU7AgOphDphM="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 postPatch = '' 22 sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake 23 sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake 24 ''; 25 26 meta = with lib; { 27 description = "Library for multiprecision complex arithmetic with exact rounding"; 28 homepage = "https://github.com/VcDevel/Vc"; 29 license = licenses.bsd3; 30 platforms = platforms.all; 31 maintainers = [ ]; 32 }; 33}