tblite: build with meson

This commit is contained in:
Nick Cao 2024-03-26 15:07:29 -04:00
parent 1ba8e8ae66
commit cf7071bff3
No known key found for this signature in database
1 changed files with 9 additions and 12 deletions

View File

@ -2,8 +2,10 @@
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, gfortran
, meson
, ninja
, pkg-config
, blas
, lapack
, mctc-lib
@ -35,13 +37,12 @@ stdenv.mkDerivation rec {
})
];
# Fix the Pkg-Config files for doubled store paths
postPatch = ''
substituteInPlace config/template.pc \
--replace "\''${prefix}/" ""
'';
nativeBuildInputs = [ cmake gfortran ];
nativeBuildInputs = [
gfortran
meson
ninja
pkg-config
];
buildInputs = [
blas
@ -56,10 +57,6 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
];
doCheck = true;
preCheck = ''
export OMP_NUM_THREADS=2