Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
953 B
Nix
47 lines
953 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gfortran,
|
|
gmp,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dalphaball";
|
|
version = "0-unstable-2023-06-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "outpace-bio";
|
|
repo = "DAlphaBall";
|
|
rev = "7b9dc05fa2a40f7ea36c6d89973d150eaed459d9";
|
|
hash = "sha256-mUxEL9b67z/mG+0pcM5uQ/jPAfEUpJlXOXPmqDea+U4=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/src";
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
gfortran
|
|
];
|
|
|
|
buildInputs = [
|
|
gfortran.cc.lib
|
|
gmp
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 DAlphaBall.gcc $out/bin/DAlphaBall
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Computes the surface area and volume of unions of many balls";
|
|
mainProgram = "DAlphaBall";
|
|
homepage = "https://github.com/outpace-bio/DAlphaBall";
|
|
license = lib.licenses.lgpl21Only;
|
|
maintainers = with lib.maintainers; [ aschleck ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|