diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/givaro')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/givaro/3.7.nix | 19 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/givaro/3.nix | 19 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/givaro/default.nix | 49 |
3 files changed, 87 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/givaro/3.7.nix b/nixpkgs/pkgs/development/libraries/givaro/3.7.nix new file mode 100644 index 000000000000..3101bc64333e --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/givaro/3.7.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, automake, autoconf, libtool, autoreconfHook, gmpxx}: +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "givaro"; + version = "3.7.2"; + src = fetchurl { + url = "https://forge.imag.fr/frs/download.php/370/givaro-${version}.tar.gz"; + sha256 = "0lf5cnbyr27fw7klc3zabkb1979dn67jmrjz6pa3jzw2ng74x9b3"; + }; + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [autoconf automake libtool gmpxx]; + meta = { + inherit version; + description = ''A C++ library for arithmetic and algebraic computations''; + license = stdenv.lib.licenses.cecill-b; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/givaro/3.nix b/nixpkgs/pkgs/development/libraries/givaro/3.nix new file mode 100644 index 000000000000..d73a448f1662 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/givaro/3.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, automake, autoconf, libtool, autoreconfHook, gmpxx}: +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "givaro"; + version = "3.8.0"; + src = fetchurl { + url = "https://forge.imag.fr/frs/download.php/592/givaro-${version}.tar.gz"; + sha256 = "1822ksv8653a84hvcz0vxl3nk8dqz7d41ys8rplq0zjjmvb2i5yq"; + }; + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [autoconf automake libtool gmpxx]; + meta = { + inherit version; + description = ''A C++ library for arithmetic and algebraic computations''; + license = stdenv.lib.licenses.cecill-b; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/givaro/default.nix b/nixpkgs/pkgs/development/libraries/givaro/default.nix new file mode 100644 index 000000000000..0773daa2d09a --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/givaro/default.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchFromGitHub, automake, autoconf, libtool, autoreconfHook, gmpxx +, optimize ? false # impure +}: +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "givaro"; + version = "4.0.4"; + src = fetchFromGitHub { + owner = "linbox-team"; + repo = "${pname}"; + rev = "v${version}"; + sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy"; + }; + + enableParallelBuilding = true; + + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [autoconf automake libtool gmpxx]; + + configureFlags = [ + "--disable-optimization" + ] ++ stdenv.lib.optionals (!optimize) [ + # disable SIMD instructions (which are enabled *when available* by default) + "--disable-sse" + "--disable-sse2" + "--disable-sse3" + "--disable-ssse3" + "--disable-sse41" + "--disable-sse42" + "--disable-avx" + "--disable-avx2" + "--disable-fma" + "--disable-fma4" + ]; + + # On darwin, tests are linked to dylib in the nix store, so we need to make + # sure tests run after installPhase. + doInstallCheck = true; + installCheckTarget = "check"; + doCheck = false; + + meta = { + inherit version; + description = ''A C++ library for arithmetic and algebraic computations''; + license = stdenv.lib.licenses.cecill-b; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.unix; + }; +} |