2021-01-15 14:21:58 +01:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2015-09-18 20:44:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "perseus-4-beta";
|
|
|
|
version = "4-beta";
|
2021-02-20 22:01:53 +01:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2015-09-18 20:44:07 +02:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-02-29 13:51:28 +01:00
|
|
|
|
2015-09-18 20:44:07 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.sas.upenn.edu/~vnanda/source/perseus_4_beta.zip";
|
|
|
|
sha256 = "09brijnqabhgfjlj5wny0bqm5dwqcfkp1x5wif6yzdmqh080jybj";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
buildPhase = ''
|
2016-08-24 23:26:21 +02:00
|
|
|
g++ Pers.cpp -O3 -fpermissive -o perseus
|
2015-09-18 20:44:07 +02: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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.sas.upenn.edu/~vnanda/perseus/index.html";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [erikryb];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-09-18 20:44:07 +02:00
|
|
|
};
|
|
|
|
}
|