mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 02:40:50 +00:00
lammps: 22Jul2025_update4 -> 22Jul2025_update5 (#550417)
This commit is contained in:
@@ -2,16 +2,19 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
|
||||
# nativeBuildInputs
|
||||
pkg-config,
|
||||
cmake,
|
||||
python3,
|
||||
|
||||
# buildInputs
|
||||
libpng,
|
||||
gzip,
|
||||
fftw,
|
||||
blas,
|
||||
lapack,
|
||||
python3,
|
||||
mpich,
|
||||
cmake,
|
||||
autoAddDriverRunpath,
|
||||
pkg-config,
|
||||
|
||||
# Available list of packages can be found near here:
|
||||
#
|
||||
# - https://github.com/lammps/lammps/blob/develop/cmake/CMakeLists.txt#L222
|
||||
@@ -46,12 +49,13 @@
|
||||
# Extra `buildInputs` - meant for packages that require more inputs
|
||||
extraBuildInputs ? [ ],
|
||||
extraNativeBuildInputs ? [ ],
|
||||
|
||||
# passthru
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
# LAMMPS has weird versioning convention. Updates should go smoothly with:
|
||||
# nix-update --commit lammps --version-regex 'stable_(.*)'
|
||||
version = "22Jul2025_update4";
|
||||
version = "22Jul2025_update5";
|
||||
pname = "lammps";
|
||||
|
||||
__structuredAttrs = true;
|
||||
@@ -61,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
owner = "lammps";
|
||||
repo = "lammps";
|
||||
tag = "stable_${finalAttrs.version}";
|
||||
hash = "sha256-QH63nh7J3NjfdfpN7J96Q+9ZGqj8cA0YwEmgTuBbGmg=";
|
||||
hash = "sha256-kI4CubDgXwnDDeXNan88RzG+iGMJMnsqfpfhWtJFhAI=";
|
||||
};
|
||||
preConfigure = ''
|
||||
cd cmake
|
||||
@@ -80,6 +84,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
inherit extraCmakeFlags;
|
||||
inherit extraBuildInputs;
|
||||
inherit extraNativeBuildInputs;
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"stable_(.*)"
|
||||
];
|
||||
};
|
||||
};
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
|
||||
Reference in New Issue
Block a user