2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, gfortran, arpack, spooles, blas, lapack }:
|
2019-08-14 18:18:38 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "calculix";
|
2020-08-22 17:12:30 +02:00
|
|
|
version = "2.17";
|
2019-08-14 18:18:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.dhondt.de/ccx_${version}.src.tar.bz2";
|
2020-08-22 17:12:30 +02:00
|
|
|
sha256 = "0l3fizxfdj2mpdp62wnk9v47q2yc3cy39fpsm629z7bjmba8lw6a";
|
2019-08-14 18:18:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gfortran ];
|
|
|
|
|
2020-03-31 16:47:18 +02:00
|
|
|
buildInputs = [ arpack spooles blas lapack ];
|
2019-08-14 18:18:38 +02:00
|
|
|
|
2019-10-30 02:29:30 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${spooles}/include/spooles";
|
2019-08-14 18:18:38 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./calculix.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cd ccx*/src
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm0755 ccx_${version} $out/bin/ccx
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-08-14 18:18:38 +02:00
|
|
|
homepage = "http://www.calculix.de/";
|
|
|
|
description = "Three-dimensional structural finite element program";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|