1 { lib, stdenv, fetchurl, gfortran, arpack, spooles, blas, lapack }:
3 assert (blas.isILP64 == lapack.isILP64 &&
4 blas.isILP64 == arpack.isILP64 &&
7 stdenv.mkDerivation rec {
12 url = "http://www.dhondt.de/ccx_${version}.src.tar.bz2";
13 sha256 = "01vdy9sns58hkm39z6d0r5y7gzqf5z493d18jin9krqib1l6jnn7";
16 nativeBuildInputs = [ gfortran ];
18 buildInputs = [ arpack spooles blas lapack ];
20 env.NIX_CFLAGS_COMPILE = toString [
21 "-I${spooles}/include/spooles"
34 install -Dm0755 ccx_${version} $out/bin/ccx
38 homepage = "http://www.calculix.de/";
39 description = "Three-dimensional structural finite element program";
41 license = licenses.gpl2Plus;
42 maintainers = with maintainers; [ gebner ];
43 platforms = platforms.unix;