Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

36 lines
789 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cppe";
version = "0.3.1";
src = fetchFromGitHub {
owner = "maxscheurer";
repo = "cppe";
rev = "v${finalAttrs.version}";
sha256 = "sha256-guM7+ZWDJLcAUJtPkKLvC4LYSA2eBvER7cgwPZ7FxHw=";
};
patches = [
./cmake-minimum-required.patch
];
nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ];
meta = {
description = "C++ and Python library for Polarizable Embedding";
homepage = "https://github.com/maxscheurer/cppe";
license = lib.licenses.lgpl3Only;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.sheepforce ];
};
})