10 version = "0.2.0-unstable-2023-11-17";
12 src = fetchFromGitHub {
13 owner = "xnd-project";
15 rev = "e1a06d9f6175f4f4e1da369b7e907ad6b2952c00";
16 hash = "sha256-RWt2Nx0tfMghQES2SM+0jbAU7IunuuTORhBe2tvqVTY=";
19 buildInputs = [ libndtypes ];
21 # Override linker with cc (symlink to either gcc or clang)
22 # Library expects to use cc for linking
24 # Override linker with cc (symlink to either gcc or clang)
25 # Library expects to use cc for linking
26 "LD=${stdenv.cc.targetPrefix}cc"
28 "--with-includes=${libndtypes}/include"
29 "--with-libs=${libndtypes}/lib"
32 # other packages which depend on libxnd seem to expect overflow.h, but
33 # it doesn't seem to be included in the installed headers. for now this
34 # works, but the generic name of the header could produce problems
35 # with collisions down the line.
37 cp libxnd/overflow.h $out/include/overflow.h
43 description = "C library for managing typed memory blocks and Python container module";
44 homepage = "https://xnd.io/";
45 license = lib.licenses.bsdOriginal;
46 maintainers = with lib.maintainers; [ costrouc ];