fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib, stdenv, fetchFromGitHub, automake, autoconf, libtool, autoreconfHook, gmpxx }:
2stdenv.mkDerivation rec {
3 pname = "givaro";
4 version = "4.2.0";
5 src = fetchFromGitHub {
6 owner = "linbox-team";
7 repo = pname;
8 rev = "v${version}";
9 sha256 = "sha256-KR0WJc0CSvaBnPRott4hQJhWNBb/Wi6MIhcTExtVobQ=";
10 };
11
12 enableParallelBuilding = true;
13
14 nativeBuildInputs = [ autoreconfHook autoconf automake ];
15 buildInputs = [libtool];
16 propagatedBuildInputs = [ gmpxx ];
17
18 configureFlags = [
19 "--disable-optimization"
20 ] ++ lib.optionals stdenv.isx86_64 [
21 # disable SIMD instructions (which are enabled *when available* by default)
22 "--${if stdenv.hostPlatform.sse3Support then "enable" else "disable"}-sse3"
23 "--${if stdenv.hostPlatform.ssse3Support then "enable" else "disable"}-ssse3"
24 "--${if stdenv.hostPlatform.sse4_1Support then "enable" else "disable"}-sse41"
25 "--${if stdenv.hostPlatform.sse4_2Support then "enable" else "disable"}-sse42"
26 "--${if stdenv.hostPlatform.avxSupport then "enable" else "disable"}-avx"
27 "--${if stdenv.hostPlatform.avx2Support then "enable" else "disable"}-avx2"
28 "--${if stdenv.hostPlatform.fmaSupport then "enable" else "disable"}-fma"
29 "--${if stdenv.hostPlatform.fma4Support then "enable" else "disable"}-fma4"
30 ];
31
32 # On darwin, tests are linked to dylib in the nix store, so we need to make
33 # sure tests run after installPhase.
34 doInstallCheck = true;
35 installCheckTarget = "check";
36 doCheck = false;
37
38 meta = {
39 description = "A C++ library for arithmetic and algebraic computations";
40 license = lib.licenses.cecill-b;
41 maintainers = [lib.maintainers.raskin];
42 platforms = lib.platforms.unix;
43 };
44}