9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
14 owner = "xtensor-stack";
17 sha256 = "1ayrhyh9x33b87ic01b4jzxc8x27yxpxzya5x54ikazvz8p71n14";
20 nativeBuildInputs = [ cmake ];
21 propagatedBuildInputs = [ xtl xsimd ];
23 cmakeFlags = [ "-DBUILD_TESTS=ON" ];
26 checkInputs = [ gtest ];
27 checkTarget = "xtest";
29 # https://github.com/xtensor-stack/xtensor/issues/2542
31 substituteInPlace xtensor.pc.in \
32 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
36 description = "Multi-dimensional arrays with broadcasting and lazy computing.";
37 homepage = "https://github.com/xtensor-stack/xtensor";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ cpcloud ];
40 platforms = platforms.all;