Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / vc / default.nix
blob02b202365b9bf348ddf7bbd458d01deed7f953ef
1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "Vc";
5   version = "1.4.4";
7   src = fetchFromGitHub {
8     owner = "VcDevel";
9     repo = "Vc";
10     rev = version;
11     sha256 = "sha256-tbHDGbul68blBAvok17oz7AfhHpEY9Y7RIEsqCQvOJ0=";
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   };