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