forked from mirrors/nixpkgs
31 lines
804 B
Nix
31 lines
804 B
Nix
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "Vc-${version}";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "VcDevel";
|
|
repo = "Vc";
|
|
rev = version;
|
|
sha256 = "18vi92xxg0ly0fw4v06fwls11rahmg5z8xf65jxxrbgf37vc1wxi";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postPatch = ''
|
|
sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake
|
|
sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library for multiprecision complex arithmetic with exact rounding";
|
|
homepage = "https://github.com/VcDevel/Vc";
|
|
license = licenses.bsd3;
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|