mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
[staging-next] simple-dftd3: fix build with gfortran 16 (#566309)
This commit is contained in:
@@ -33,6 +33,14 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-THl8sUY7pLxFz4mY7FMj/c1hwzqLaaNNMq0qkxWkUzw=";
|
||||
};
|
||||
|
||||
# set_model_ghost_index was not declared as part of the public api, leading
|
||||
# to link errors with gfortran 16.
|
||||
postPatch = ''
|
||||
substituteInPlace src/dftd3/api.f90 --replace-fail \
|
||||
"public :: set_model_ewald, set_model_work_partition" \
|
||||
"public :: set_model_ewald, set_model_ghost_index, set_model_work_partition"
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./cmake.patch
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user