lol

apbs: init at 3.4.1 (#230644)

* apbs: init at 3.4.1

* Update pkgs/applications/science/chemistry/apbs/default.nix

---------

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by

OTABI Tomoya
Sandro
and committed by
GitHub
bb820fba 1576f78e

+103
+101
pkgs/applications/science/chemistry/apbs/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , blas 6 + , superlu 7 + , suitesparse 8 + , python3 9 + , libintl 10 + , libiconv 11 + }: 12 + let 13 + # this is a fork version of fetk (http://www.fetk.org/) 14 + # which is maintained by apbs team 15 + fetk = stdenv.mkDerivation (finalAttrs: { 16 + pname = "fetk"; 17 + version = "1.9.3"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "Electrostatics"; 21 + repo = "fetk"; 22 + rev = "refs/tags/${finalAttrs.version}"; 23 + hash = "sha256-uFA1JRR05cNcUGaJj9IyGNONB2hU9IOBPzOj/HucNH4="; 24 + }; 25 + 26 + nativeBuildInputs = [ 27 + cmake 28 + ]; 29 + 30 + cmakeFlags = [ 31 + "-DBLAS_LIBRARIES=${blas}/lib" 32 + "-DBLA_STATIC=OFF" 33 + "-DBUILD_SUPERLU=OFF" 34 + ]; 35 + 36 + buildInputs = [ 37 + blas 38 + superlu 39 + suitesparse 40 + ]; 41 + 42 + meta = with lib; { 43 + description = "Fork of the Finite Element ToolKit from fetk.org"; 44 + homepage = "https://github.com/Electrostatics/FETK"; 45 + changelog = "https://github.com/Electrostatics/FETK/releases/tag/${finalAttrs.version}"; 46 + license = licenses.lgpl21Plus; 47 + maintainers = with maintainers; [ natsukium ]; 48 + platforms = platforms.unix; 49 + }; 50 + }); 51 + in 52 + stdenv.mkDerivation (finalAttrs: { 53 + pname = "apbs"; 54 + version = "3.4.1"; 55 + 56 + src = fetchFromGitHub { 57 + owner = "Electrostatics"; 58 + repo = "apbs"; 59 + rev = "refs/tags/v${finalAttrs.version}"; 60 + hash = "sha256-2DnHU9hMDl4OJBaTtcRiB+6R7gAeFcuOUy7aI63A3gQ="; 61 + }; 62 + 63 + postPatch = '' 64 + # ImportFETK.cmake downloads source and builds fetk 65 + substituteInPlace CMakeLists.txt \ 66 + --replace "include(ImportFETK)" "" \ 67 + --replace 'import_fetk(''${FETK_VERSION})' "" 68 + ''; 69 + 70 + nativeBuildInputs = [ 71 + cmake 72 + ]; 73 + 74 + buildInputs = [ 75 + fetk 76 + suitesparse 77 + blas 78 + python3 79 + ] ++ lib.optionals stdenv.isDarwin [ 80 + libintl 81 + libiconv 82 + ]; 83 + 84 + cmakeFlags = [ 85 + "-DPYTHON_VERSION=${python3.version}" 86 + "-DAPBS_LIBS=mc;maloc" 87 + "-DCMAKE_MODULE_PATH=${fetk}/share/fetk/cmake;" 88 + "-DENABLE_TESTS=1" 89 + ]; 90 + 91 + doCheck = true; 92 + 93 + meta = with lib; { 94 + description = "Software for biomolecular electrostatics and solvation calculations"; 95 + homepage = "https://www.poissonboltzmann.org/"; 96 + changelog = "https://github.com/Electrostatics/apbs/releases/tag/v${finalAttrs.version}"; 97 + license = licenses.bsd3; 98 + maintainers = with maintainers; [ natsukium ]; 99 + platforms = platforms.unix; 100 + }; 101 + })
+2
pkgs/top-level/all-packages.nix
··· 37396 37396 37397 37397 ### SCIENCE/CHEMISTY 37398 37398 37399 + apbs = callPackage ../applications/science/chemistry/apbs { }; 37400 + 37399 37401 avogadro = callPackage ../applications/science/chemistry/avogadro { 37400 37402 openbabel = openbabel2; 37401 37403 eigen = eigen2;