Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: gromacs 2026.2 -> 2026.3 https://repology.org/project/gromacs/versions attrpath: gromacs Checking auto update branch... No auto update branch exists Old version 2026.2" not present in master derivation file with contents: { lib, stdenv, fetchurl, fetchpatch2, cmake, hwloc, fftw, perl, blas, lapack, llvmPackages, mpi, cudaPackages, plumed, singlePrec ? true, config, enableCuda ? config.cudaSupport, enableMpi ? false, enablePlumed ? false, cpuAcceleration ? null, }: # CUDA is only implemented for single precision assert enableCuda -> singlePrec; let inherit (cudaPackages.flags) cmakeCudaArchitecturesString; effectiveStdenv = if enableCuda then cudaPackages.backendStdenv else stdenv; inherit (effectiveStdenv) hostPlatform; # Select reasonable defaults for all major platforms # The possible values are defined in CMakeLists.txt: # AUTO None SSE2 SSE4.1 AVX_128_FMA AVX_256 AVX2_256 # AVX2_128 AVX_512 AVX_512_KNL MIC ARM_NEON ARM_NEON_ASIMD defaultSIMD = if hostPlatform.system == "i686-linux" then "SSE2" else if hostPlatform.isx86_64 then if hostPlatform.avx512Support then "AVX_512" else if hostPlatform.avx2Support then "AVX2_256" else if hostPlatform.avxSupport then "AVX_256" else "SSE4.1" else if hostPlatform.isAarch64 then "ARM_NEON_ASIMD" else "None"; SIMD = if cpuAcceleration != null then cpuAcceleration else defaultSIMD; source = if enablePlumed then { version = "2024.2"; hash = "sha256-gCp+M18uiVdw9XsVnk7DaOuw/yzm2sz3BsboAlw2hSs="; } else { version = "2026.3"; hash = "sha256-EJS3u8ajlgIjgnEUYmZXEQtACWzflZinJ5NfyE6/iqA="; }; in effectiveStdenv.mkDerivation (finalAttrs: { pname = "gromacs"; version = source.version; src = fetchurl { url = "ftp://ftp.gromacs.org/pub/gromacs/gromacs-${finalAttrs.version}.tar.gz"; inherit (source) hash; }; patches = [ # Fix pkg-config paths for the version-specific gromacs variant. (if enablePlumed then ./pkgconfig-2024.patch else ./pkgconfig-2025.patch) ] ++ lib.optionals enablePlumed [ # Backport gcc 15 cstdint include fix. (fetchpatch2 { url = "https://gitlab.com/gromacs/gromacs/-/commit/e0180bc37f3111d7dcaffca3854c088ed910c3b4.diff"; hash = "sha256-TvTzfb/RETAzFpYfFFr6/L5GV1Pile16gVJhNigwAB4="; }) ]; postPatch = lib.optionalString enablePlumed '' plumed patch -p -e gromacs-${source.version} ''; outputs = [ "out" "dev" "man" ]; nativeBuildInputs = [ cmake ] ++ lib.optionals enablePlumed [ plumed ] ++ lib.optionals enableCuda [ cudaPackages.cuda_nvcc ]; buildInputs = [ fftw perl hwloc blas lapack ] ++ lib.optionals enableMpi [ mpi ] ++ lib.optionals enableCuda [ cudaPackages.cccl cudaPackages.cuda_cudart cudaPackages.libcufft cudaPackages.cuda_profiler_api ] ++ lib.optionals hostPlatform.isDarwin [ llvmPackages.openmp ]; propagatedBuildInputs = lib.optionals enableMpi [ mpi ]; propagatedUserEnvPkgs = lib.optionals enableMpi [ mpi ]; cmakeFlags = [ (lib.cmakeBool "GMX_HWLOC" true) (lib.cmakeFeature "GMX_SIMD" SIMD) (lib.cmakeBool "GMX_OPENMP" true) (lib.cmakeBool "BUILD_SHARED_LIBS" true) (lib.cmakeBool "GMX_DOUBLE" (!singlePrec)) (lib.cmakeBool "GMX_DEFAULT_SUFFIX" singlePrec) (lib.cmakeBool "GMX_MPI" enableMpi) ] ++ lib.optionals enableMpi [ (lib.cmakeBool "GMX_THREAD_MPI" false) ] ++ lib.optionals enableCuda [ (lib.cmakeFeature "GMX_GPU" "CUDA") (lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cmakeCudaArchitecturesString) # Gromacs seems to ignore and override the normal variables, so we add this ad hoc: (lib.cmakeFeature "GMX_CUDA_TARGET_COMPUTE" cmakeCudaArchitecturesString) ]; postInstall = '' moveToOutput share/cmake $dev ''; meta = { homepage = "https://www.gromacs.org"; license = lib.licenses.lgpl21Plus; description = "Molecular dynamics software package"; longDescription = '' GROMACS is a versatile package to perform molecular dynamics, i.e. simulate the Newtonian equations of motion for systems with hundreds to millions of particles. It is primarily designed for biochemical molecules like proteins, lipids and nucleic acids that have a lot of complicated bonded interactions, but since GROMACS is extremely fast at calculating the nonbonded interactions (that usually dominate simulations) many groups are also using it for research on non-biological systems, e.g. polymers. GROMACS supports all the usual algorithms you expect from a modern molecular dynamics implementation, (check the online reference or manual for details), but there are also quite a few features that make it stand out from the competition. See: https://www.gromacs.org/about.html for details. ''; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ sheepforce markuskowa ]; }; })