Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
881 B
Nix
49 lines
881 B
Nix
{
|
||
stdenv,
|
||
lib,
|
||
fetchFromGitHub,
|
||
gfortran,
|
||
cmake,
|
||
pkg-config,
|
||
blas,
|
||
lapack,
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "greenx";
|
||
version = "2.2";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "nomad-coe";
|
||
repo = "greenx";
|
||
rev = "v${version}";
|
||
hash = "sha256-otIs2Y79KoEL4ut8YQe7Y27LpmpId8h/X8B6GIg8l+E=";
|
||
};
|
||
|
||
nativeBuildInputs = [
|
||
gfortran
|
||
pkg-config
|
||
cmake
|
||
];
|
||
|
||
buildInputs = [
|
||
blas
|
||
lapack
|
||
];
|
||
|
||
# Uses a hacky python setup run by cmake, which is hard to get running
|
||
doCheck = false;
|
||
|
||
preCheck = ''
|
||
export OMP_NUM_THREADS=2
|
||
'';
|
||
|
||
meta = with lib; {
|
||
description = "Library for Green’s function based electronic structure theory calculations";
|
||
license = [ licenses.asl20 ];
|
||
homepage = "https://github.com/nomad-coe/greenX";
|
||
platforms = platforms.linux;
|
||
maintainers = [ maintainers.sheepforce ];
|
||
};
|
||
}
|