Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
881 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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 Greens function based electronic structure theory calculations";
license = [ licenses.asl20 ];
homepage = "https://github.com/nomad-coe/greenX";
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}