libcint: fix tests on darwin, set platforms

This commit is contained in:
Weijia Wang
2024-01-07 18:04:34 +01:00
parent c7ef5c0bf4
commit dbe38b2877
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
hash = "sha256-qcVVp+81S3Y0fxDWA/PWQeFT2g0N6tIHNUaOHSru2GA=";
};
postPatch = ''
sed -i 's/libcint.so/libcint${stdenv.hostPlatform.extensions.sharedLibrary}/g' testsuite/*.py
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ blas ];
cmakeFlags = [
@@ -46,5 +50,6 @@ stdenv.mkDerivation rec {
changelog = "https://github.com/sunqm/libcint/blob/master/ChangeLog";
license = licenses.bsd2;
maintainers = with maintainers; [ drewrisinger ];
platforms = platforms.unix;
};
}