3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/math/perseus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, fetchurl, unzip }:
2015-09-18 19:44:07 +01:00
stdenv.mkDerivation {
pname = "perseus";
2015-09-18 19:44:07 +01:00
version = "4-beta";
nativeBuildInputs = [ unzip ];
2015-09-18 19:44:07 +01:00
hardeningDisable = [ "stackprotector" ];
2015-09-18 19:44:07 +01:00
src = fetchurl {
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.
'';
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
};
}