13 # this is a fork version of fetk (http://www.fetk.org/)
14 # which is maintained by apbs team
15 fetk = stdenv.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
20 owner = "Electrostatics";
22 rev = "refs/tags/${finalAttrs.version}";
23 hash = "sha256-uFA1JRR05cNcUGaJj9IyGNONB2hU9IOBPzOj/HucNH4=";
31 "-DBLAS_LIBRARIES=${blas}/lib"
36 env = lib.optionalAttrs stdenv.cc.isClang {
37 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int";
47 description = "Fork of the Finite Element ToolKit from fetk.org";
48 homepage = "https://github.com/Electrostatics/FETK";
49 changelog = "https://github.com/Electrostatics/FETK/releases/tag/${finalAttrs.version}";
50 license = licenses.lgpl21Plus;
51 maintainers = with maintainers; [ natsukium ];
52 platforms = platforms.unix;
56 stdenv.mkDerivation (finalAttrs: {
60 src = fetchFromGitHub {
61 owner = "Electrostatics";
63 rev = "refs/tags/v${finalAttrs.version}";
64 hash = "sha256-2DnHU9hMDl4OJBaTtcRiB+6R7gAeFcuOUy7aI63A3gQ=";
68 # ImportFETK.cmake downloads source and builds fetk
69 substituteInPlace CMakeLists.txt \
70 --replace "include(ImportFETK)" "" \
71 --replace 'import_fetk(''${FETK_VERSION})' ""
73 # U was removed in python 3.11 because it had no effect
74 substituteInPlace tools/manip/inputgen.py \
75 --replace '"rU"' '"r"'
87 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
93 "-DPYTHON_VERSION=${python3.version}"
94 "-DAPBS_LIBS=mc;maloc"
95 "-DCMAKE_MODULE_PATH=${fetk}/share/fetk/cmake;"
99 env = lib.optionalAttrs stdenv.cc.isClang {
100 NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
106 description = "Software for biomolecular electrostatics and solvation calculations";
107 mainProgram = "apbs";
108 homepage = "https://www.poissonboltzmann.org/";
109 changelog = "https://github.com/Electrostatics/apbs/releases/tag/v${finalAttrs.version}";
110 license = licenses.bsd3;
111 maintainers = with maintainers; [ natsukium ];
112 platforms = platforms.unix;