Files
nixpkgs/pkgs/by-name/xt/xtensor-blas/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
openblas,
xtensor,
xtl,
doctest,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xtensor-blas";
version = "0.23.0";
src = fetchFromGitHub {
owner = "xtensor-stack";
repo = "xtensor-blas";
tag = finalAttrs.version;
hash = "sha256-3g84TMOBWq9q8O6GipwdsugjGhPwkZE1cXbRsnVp3Ls=";
};
# test case THREW exception: Could not find workspace size for gelsd
postPatch = ''
substituteInPlace test/CMakeLists.txt \
--replace-fail "test_lapack.cpp" "" \
--replace-fail "test_linalg.cpp" "" \
--replace-fail "test_qr.cpp" "" \
--replace-fail "test_lstsq.cpp" ""
'';
nativeBuildInputs = [ cmake ];
buildInputs = [
openblas
xtensor
xtl
];
nativeCheckInputs = [ doctest ];
cmakeFlags = [
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
];
doCheck = true;
meta = {
description = "Extension to the xtensor library offering bindings to BLAS and LAPACK";
homepage = "https://github.com/xtensor-stack/xtensor-blas";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jherland ];
};
})