summary refs log tree commit diff
path: root/pkgs/development/libraries/ntl/default.nix
diff options
context:
space:
mode:
authorMarkus Hauck <markus1189@gmail.com>2016-09-12 19:26:30 +0200
committervbgl <vbgl@users.noreply.github.com>2016-09-12 19:26:30 +0200
commitd37c84106a1ea0e3071e7ab7c66e5233d5d7b4af (patch)
tree1bd7ba74a2080eca46b6ef260b32e1d0235516b3 /pkgs/development/libraries/ntl/default.nix
parent54900180343eee7b87b4186f1179a568460514da (diff)
downloadnixpkgs-d37c84106a1ea0e3071e7ab7c66e5233d5d7b4af.tar
nixpkgs-d37c84106a1ea0e3071e7ab7c66e5233d5d7b4af.tar.gz
nixpkgs-d37c84106a1ea0e3071e7ab7c66e5233d5d7b4af.tar.bz2
nixpkgs-d37c84106a1ea0e3071e7ab7c66e5233d5d7b4af.tar.lz
nixpkgs-d37c84106a1ea0e3071e7ab7c66e5233d5d7b4af.tar.xz
nixpkgs-d37c84106a1ea0e3071e7ab7c66e5233d5d7b4af.tar.zst
nixpkgs-d37c84106a1ea0e3071e7ab7c66e5233d5d7b4af.zip
ntl: init at 9.11.0 (#18507)
Diffstat (limited to 'pkgs/development/libraries/ntl/default.nix')
-rw-r--r--pkgs/development/libraries/ntl/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ntl/default.nix b/pkgs/development/libraries/ntl/default.nix
new file mode 100644
index 00000000000..32467e4849b
--- /dev/null
+++ b/pkgs/development/libraries/ntl/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, perl, gmp, libtool
+}:
+
+stdenv.mkDerivation rec {
+  name = "ntl-${version}";
+  version = "9.11.0";
+  src = fetchurl {
+    url = "http://www.shoup.net/ntl/ntl-${version}.tar.gz";
+    sha256 = "1wcwxpcby1c50llncz131334qq26lzh3dz21rahymgvakrq0369p";
+  };
+
+  buildInputs = [ perl gmp libtool ];
+
+  sourceRoot = "${name}/src";
+
+  enableParallelBuilding = true;
+
+  dontAddPrefix = true;
+
+  configureFlags = [ "DEF_PREFIX=$(out)" "WIZARD=off" "SHARED=on" "NATIVE=off" "CXX=c++" ];
+
+  # doCheck = true; # takes some time
+
+  meta = {
+    description = "A Library for doing Number Theory";
+    longDescription = ''
+      NTL is a high-performance, portable C++ library providing data
+      structures and algorithms for manipulating signed, arbitrary
+      length integers, and for vectors, matrices, and polynomials over
+      the integers and over finite fields.
+    '';
+    homepage = http://www.shoup.net/ntl/;
+    license = stdenv.lib.licenses.gpl2Plus;
+    platforms = stdenv.lib.platforms.all;
+  };
+}