2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2015-09-18 19:44:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-11-07 13:50:48 +00:00
|
|
|
pname = "perseus";
|
2015-09-18 19:44:07 +01:00
|
|
|
version = "4-beta";
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2015-09-18 19:44:07 +01:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-02-29 12:51:28 +00:00
|
|
|
|
2015-09-18 19:44:07 +01:00
|
|
|
src = fetchurl {
|
2022-06-26 22:35:42 +01:00
|
|
|
url = "http://people.maths.ox.ac.uk/nanda/source/perseus_4_beta.zip";
|
|
|
|
sha256 = "sha256-cnkJEIC4tu+Ni7z0cKdjmLdS8QLe8iKpdA8uha2MeSU=";
|
2015-09-18 19:44:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
2022-06-27 09:08:55 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
|
2015-09-18 19:44:07 +01:00
|
|
|
buildPhase = ''
|
2016-08-24 22:26:21 +01:00
|
|
|
g++ Pers.cpp -O3 -fpermissive -o perseus
|
2015-09-18 19:44:07 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2022-06-26 22:35:42 +01:00
|
|
|
homepage = "http://people.maths.ox.ac.uk/nanda/perseus/index.html";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2022-06-26 23:27:46 +01:00
|
|
|
maintainers = with lib.maintainers; [ erikryb ];
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2015-09-18 19:44:07 +01:00
|
|
|
};
|
|
|
|
}
|