summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2018-08-05 15:12:23 +0000
committerGitHub <noreply@github.com>2018-08-05 15:12:23 +0000
commit1df808513290756b9791ed94e4f39112e11275a8 (patch)
tree41f3658d05cf0ce676a41fd6e1c557c4fd48d127 /pkgs
parent0aa19ba47acc149d332fef6ba01f3d9cf6565e64 (diff)
parentaabc55e154f54ca8b5599ec6075b5b3cf1e32999 (diff)
downloadnixpkgs-1df808513290756b9791ed94e4f39112e11275a8.tar
nixpkgs-1df808513290756b9791ed94e4f39112e11275a8.tar.gz
nixpkgs-1df808513290756b9791ed94e4f39112e11275a8.tar.bz2
nixpkgs-1df808513290756b9791ed94e4f39112e11275a8.tar.lz
nixpkgs-1df808513290756b9791ed94e4f39112e11275a8.tar.xz
nixpkgs-1df808513290756b9791ed94e4f39112e11275a8.tar.zst
nixpkgs-1df808513290756b9791ed94e4f39112e11275a8.zip
Merge pull request #44506 from timokau/sage-new-deps
Init libbraiding and libhomfly
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/science/math/libbraiding/default.nix34
-rw-r--r--pkgs/development/libraries/science/math/libhomfly/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix3
3 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/development/libraries/science/math/libbraiding/default.nix b/pkgs/development/libraries/science/math/libbraiding/default.nix
new file mode 100644
index 00000000000..be650f3c3ce
--- /dev/null
+++ b/pkgs/development/libraries/science/math/libbraiding/default.nix
@@ -0,0 +1,34 @@
+{ stdenv
+, fetchFromGitHub
+, autoreconfHook
+}:
+
+stdenv.mkDerivation rec {
+  version = "1.0";
+  name = "libbraiding-${version}";
+
+  src = fetchFromGitHub {
+    owner = "miguelmarco";
+    repo = "libbraiding";
+    rev = version;
+    sha256 = "0l68rikfr7k2l547gb3pp3g8cj5zzxwipm79xrb5r8ffj466ydxg";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+  ];
+
+  # no tests included for now (2018-08-05), but can't hurt to activate
+  doCheck = true;
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/miguelmarco/libbraiding/;
+    description = "C++ library for computations on braid groups";
+    longDescription = ''
+      A library to compute several properties of braids, including centralizer and conjugacy check.
+    '';
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ timokau ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/development/libraries/science/math/libhomfly/default.nix b/pkgs/development/libraries/science/math/libhomfly/default.nix
new file mode 100644
index 00000000000..e96ee475d7d
--- /dev/null
+++ b/pkgs/development/libraries/science/math/libhomfly/default.nix
@@ -0,0 +1,35 @@
+{ stdenv
+, fetchFromGitHub
+, autoreconfHook
+, boehmgc
+}:
+
+stdenv.mkDerivation rec {
+  version = "1.02r5";
+  name = "llibhomfly-${version}";
+
+  src = fetchFromGitHub {
+    owner = "miguelmarco";
+    repo = "libhomfly";
+    rev = version;
+    sha256 = "1szv8iwlhvmy3saigi15xz8vgch92p2lbsm6440v5s8vxj455bvd";
+  };
+
+  buildInputs = [
+    boehmgc
+  ];
+
+  nativeBuildInputs = [
+    autoreconfHook
+  ];
+
+  doCheck = true;
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/miguelmarco/libhomfly/;
+    description = "Library to compute the homfly polynomial of knots and links";
+    license = licenses.unlicense;
+    maintainers = with maintainers; [ timokau ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 2bf290b982a..09ee4454fe2 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -20511,6 +20511,9 @@ with pkgs;
 
   jags = callPackage ../applications/science/math/jags { };
 
+  libbraiding = callPackage ../development/libraries/science/math/libbraiding { };
+
+  libhomfly = callPackage ../development/libraries/science/math/libhomfly { };
 
   # We have essentially 4 permutations of liblapack: version 3.4.1 or 3.5.0,
   # and with or without atlas as a dependency. The default `liblapack` is 3.4.1