Files
nixpkgs/pkgs/by-name/ca/calculix-ccx/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
gfortran,
arpack,
spooles,
blas,
lapack,
}:
assert (blas.isILP64 == lapack.isILP64 && blas.isILP64 == arpack.isILP64 && !blas.isILP64);
stdenv.mkDerivation rec {
pname = "calculix-ccx";
version = "2.22";
src = fetchurl {
url = "http://www.dhondt.de/ccx_${version}.src.tar.bz2";
hash = "sha256-OpTcx3WjH1cCKXNLNB1rBjAevcdZhj35Aci5vxhUwLw=";
};
nativeBuildInputs = [ gfortran ];
buildInputs = [
arpack
spooles
blas
lapack
];
env.NIX_CFLAGS_COMPILE = toString [
"-I${spooles}/include/spooles"
"-std=legacy"
];
patches = [
./calculix-ccx.patch
];
postPatch = ''
cd ccx*/src
'';
installPhase = ''
runHook preInstall
install -Dm0755 ccx_${version} $out/bin/ccx
runHook postInstall
'';
meta = {
homepage = "http://www.calculix.de";
description = "Three-dimensional structural finite element program";
mainProgram = "ccx";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}