summary refs log tree commit diff
path: root/pkgs/applications/science/math
diff options
context:
space:
mode:
authorErik Rybakken <erik.rybakken@math.ntnu.no>2015-09-18 20:44:07 +0200
committerErik Rybakken <erik.rybakken@math.ntnu.no>2015-09-19 00:56:24 +0200
commit64c1a9a2e29b3e9b36e7bd280702824c6182c433 (patch)
tree49d318a66b21967d022f873abf8b38aa2d3f5299 /pkgs/applications/science/math
parentc8ea6c07c655ba70cf46c52063276bfcfa5b1643 (diff)
downloadnixlib-64c1a9a2e29b3e9b36e7bd280702824c6182c433.tar
nixlib-64c1a9a2e29b3e9b36e7bd280702824c6182c433.tar.gz
nixlib-64c1a9a2e29b3e9b36e7bd280702824c6182c433.tar.bz2
nixlib-64c1a9a2e29b3e9b36e7bd280702824c6182c433.tar.lz
nixlib-64c1a9a2e29b3e9b36e7bd280702824c6182c433.tar.xz
nixlib-64c1a9a2e29b3e9b36e7bd280702824c6182c433.tar.zst
nixlib-64c1a9a2e29b3e9b36e7bd280702824c6182c433.zip
perseus: init at 4-beta
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r--pkgs/applications/science/math/perseus/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/perseus/default.nix b/pkgs/applications/science/math/perseus/default.nix
new file mode 100644
index 000000000000..94029a043492
--- /dev/null
+++ b/pkgs/applications/science/math/perseus/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchurl, unzip, gcc48 }:
+
+stdenv.mkDerivation {
+  name = "perseus-4-beta";
+  version = "4-beta";
+  buildInputs = [unzip gcc48];
+
+  src = fetchurl {
+    url = "http://www.sas.upenn.edu/~vnanda/source/perseus_4_beta.zip";
+    sha256 = "09brijnqabhgfjlj5wny0bqm5dwqcfkp1x5wif6yzdmqh080jybj";
+  };
+
+  sourceRoot = ".";
+
+  buildPhase = ''
+    g++ Pers.cpp -O3 -o perseus
+  '';
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp perseus $out/bin
+  '';
+
+  meta = {
+    description = "The Persistent Homology Software";
+    longDescription = ''
+      Persistent homology - or simply, persistence - is an algebraic
+      topological invariant of a filtered cell complex. Perseus
+      computes this invariant for a wide class of filtrations built
+      around datasets arising from point samples, images, distance
+      matrices and so forth.
+    '';
+    homepage = "www.sas.upenn.edu/~vnanda/perseus/index.html";
+    license = stdenv.lib.licenses.gpl3;
+    maintainers = with stdenv.lib.maintainers; [erikryb];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}