anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / development / libraries / vc / default.nix
blob6eb3c3db642784e998893caaeb347dc6df959092
1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "Vc";
5   version = "1.4.5";
7   src = fetchFromGitHub {
8     owner = "VcDevel";
9     repo = "Vc";
10     rev = version;
11     sha256 = "sha256-A2qUzjXv50unFcoZp2nRVinkph+CoHyiU7AgOphDphM=";
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   };