Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created August 5, 2020 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idontgetoutmuch/20da73431d25666ba868dcc49ca501b9 to your computer and use it in GitHub Desktop.
Save idontgetoutmuch/20da73431d25666ba868dcc49ca501b9 to your computer and use it in GitHub Desktop.
{ stdenv
, fetchurl
, llvmPackages
, overrideCC
, gcc }:
let
openmp = llvmPackages.openmp;
in (overrideCC stdenv gcc).mkDerivation rec {
pname = "PhysiCell";
version = "1.7.1";
buildInputs = [ openmp ];
nativeBuildInputs = [ openmp ];
src = fetchurl {
url = "https://github.com/MathCancer/${pname}/archive/${version}.tar.gz";
sha256 = "000pkw8maldb25b8g9cgr5qi4l905073pqrr3nfazc9n990260fi";
};
PHYSICELL_CPP="${gcc}/bin/g++";
installPhase = ''
mkdir -p "$out"/bin
cp heterogeneity $out/heterogeneity
'';
meta = with stdenv.lib; {
description = "PhysiCell: an Open Source Physics-Based Cell Simulator for 3-D Multicellular Systems.";
homepage = http://physicell.org;
platforms = platforms.all;
maintainers = with maintainers; [ idontgetoutmuch ];
license = licenses.bsd3;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment