9 assert (!blas.isILP64);
10 assert blas.isILP64 == lapack.isILP64;
12 stdenv.mkDerivation rec {
16 nativeBuildInputs = [ gfortran ];
22 src = fetchFromGitHub {
23 owner = "wannier-developers";
26 hash = "sha256-+Mq7lM6WuwAnK/2FlDz9gNRIg2sRazQRezb3BfD0veY=";
29 # test cases are removed as error bounds of wannier90 are obviously to tight
31 rm -r test-suite/tests/testpostw90_{fe_kpathcurv,fe_kslicecurv,si_geninterp,si_geninterp_wsdistance}
32 rm -r test-suite/tests/testw90_example26 # Fails without AVX optimizations
33 patchShebangs test-suite/run_tests test-suite/testcode/bin/testcode.py
37 cp config/make.inc.gfort make.inc
40 buildFlags = [ "all" "dynlib" ];
49 cp libwannier.so $out/lib/libwannier.so
52 find ./src/obj/ -name "*.mod" -exec cp {} $out/include/. \;
56 checkInputs = [ python3 ];
57 checkTarget = [ "test-serial" ];
59 export OMP_NUM_THREADS=4
62 enableParallelBuilding = true;
64 hardeningDisable = [ "format" ];
67 description = "Calculation of maximally localised Wannier functions";
68 homepage = "https://github.com/wannier-developers/wannier90";
69 license = licenses.gpl2Plus;
70 platforms = [ "x86_64-linux" ];
71 maintainers = [ maintainers.sheepforce ];