about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/science/math/lcalc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/science/math/lcalc/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/science/math/lcalc/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/science/math/lcalc/default.nix b/nixpkgs/pkgs/development/libraries/science/math/lcalc/default.nix
new file mode 100644
index 000000000000..b1896917658c
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/science/math/lcalc/default.nix
@@ -0,0 +1,41 @@
+{ lib, stdenv
+, autoreconfHook
+, gengetopt
+, pkg-config
+, fetchFromGitLab
+, pari
+}:
+
+stdenv.mkDerivation rec {
+  version = "2.0.5";
+  pname = "lcalc";
+
+  src = fetchFromGitLab {
+    owner = "sagemath";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-RxWZ7T0I9zV7jUVnL6jV/PxEoU32KY7Q1UsOL5Lonuc=";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    gengetopt
+    pkg-config
+  ];
+
+  buildInputs = [
+    pari
+  ];
+
+  configureFlags = [
+    "--with-pari"
+  ];
+
+  meta = with lib; {
+    homepage = "https://gitlab.com/sagemath/lcalc";
+    description = "A program for calculating with L-functions";
+    license = with licenses; [ gpl2 ];
+    maintainers = teams.sage.members;
+    platforms = platforms.all;
+  };
+}