ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "perseus";
|
|
version = "4-beta";
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
hardeningDisable = [ "stackprotector" ];
|
|
|
|
src = fetchurl {
|
|
url = "http://www.sas.upenn.edu/~vnanda/source/perseus_4_beta.zip";
|
|
sha256 = "09brijnqabhgfjlj5wny0bqm5dwqcfkp1x5wif6yzdmqh080jybj";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
buildPhase = ''
|
|
g++ Pers.cpp -O3 -fpermissive -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 = "http://www.sas.upenn.edu/~vnanda/perseus/index.html";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ erikryb ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|