mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "perseus";
|
|
version = "4-beta";
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
hardeningDisable = [ "stackprotector" ];
|
|
|
|
src = fetchurl {
|
|
url = "http://people.maths.ox.ac.uk/nanda/source/perseus_4_beta.zip";
|
|
sha256 = "sha256-cnkJEIC4tu+Ni7z0cKdjmLdS8QLe8iKpdA8uha2MeSU=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ];
|
|
buildPhase = ''
|
|
g++ Pers.cpp -O3 -fpermissive -o perseus
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp perseus $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Persistent Homology Software";
|
|
mainProgram = "perseus";
|
|
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";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ erikryb ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|