nixpkgs/pkgs/applications/science/math/perseus/default.nix
obadz 3de6e5be50 Merge branch 'master' into staging
Conflicts:
      pkgs/applications/misc/navit/default.nix
      pkgs/applications/networking/mailreaders/alpine/default.nix
      pkgs/applications/networking/mailreaders/realpine/default.nix
      pkgs/development/compilers/ghc/head.nix
      pkgs/development/libraries/openssl/default.nix
      pkgs/games/liquidwar/default.nix
      pkgs/games/spring/springlobby.nix
      pkgs/os-specific/linux/kernel/perf.nix
      pkgs/servers/sip/freeswitch/default.nix
      pkgs/tools/archivers/cromfs/default.nix
      pkgs/tools/graphics/plotutils/default.nix
2016-08-27 23:54:54 +01:00

41 lines
1.1 KiB
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation {
name = "perseus-4-beta";
version = "4-beta";
buildInputs = [ 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 = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [erikryb];
platforms = stdenv.lib.platforms.linux;
};
}