1c8aba8334
This makes packages use lapack and blas, which can wrap different BLAS/LAPACK implementations. treewide: cleanup from blas/lapack changes A few issues in the original treewide: - can’t assume blas64 is a bool - unused commented code
38 lines
849 B
Nix
38 lines
849 B
Nix
{ stdenv, fetchurl, gfortran, arpack, spooles, blas, lapack }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "calculix";
|
|
version = "2.15";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.dhondt.de/ccx_${version}.src.tar.bz2";
|
|
sha256 = "0d4axfxgm3ag4p2vx9rjcky7c122k99a2nhv1jv53brm35rblzdw";
|
|
};
|
|
|
|
nativeBuildInputs = [ gfortran ];
|
|
|
|
buildInputs = [ arpack spooles blas lapack ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${spooles}/include/spooles";
|
|
|
|
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;
|
|
};
|
|
}
|