nixpkgs/pkgs/applications/science/math/getdp/default.nix

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

33 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }:
2018-08-18 22:20:45 +00:00
stdenv.mkDerivation rec {
pname = "getdp";
2022-07-31 09:45:24 +00:00
version = "3.5.0";
2018-08-18 22:20:45 +00:00
src = fetchurl {
url = "http://getdp.info/src/getdp-${version}-source.tgz";
2022-07-31 09:45:24 +00:00
sha256 = "sha256-C/dsSe+puIQBpFfBL3qr2XWXrUnvYy0/uTCKqOpDe9w=";
2018-08-18 22:20:45 +00:00
};
inherit (petsc) mpiSupport;
nativeBuildInputs = [ cmake python3 ];
buildInputs = [ gfortran blas lapack petsc ]
++ lib.optional mpiSupport mpi
;
cmakeFlags = lib.optional mpiSupport "-DENABLE_MPI=1";
2018-08-18 22:20:45 +00:00
meta = with lib; {
2018-08-18 22:20:45 +00:00
description = "A General Environment for the Treatment of Discrete Problems";
longDescription = ''
2019-04-30 10:15:15 +00:00
GetDP is a free finite element solver using mixed elements to discretize
de Rham-type complexes in one, two and three dimensions. The main
feature of GetDP is the closeness between the input data defining
discrete problems (written by the user in ASCII data files) and the
symbolic mathematical expressions of these problems.
2018-08-18 22:20:45 +00:00
'';
2019-04-30 10:15:15 +00:00
homepage = "http://getdp.info/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ];
2018-08-18 22:20:45 +00:00
platforms = platforms.linux;
};
}