2018-08-11 13:01:45 -07:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libndtypes
|
|
|
|
}:
|
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "libxnd";
|
2018-11-27 13:53:46 -08:00
|
|
|
version = "unstable-2018-11-27";
|
2018-08-11 13:01:45 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "plures";
|
|
|
|
repo = "xnd";
|
2018-11-27 13:53:46 -08:00
|
|
|
rev = "8a9f3bd1d01d872828b40bc9dbd0bc0184524da3";
|
|
|
|
sha256 = "10jh2kqvhpzwy50adayh9az7z2lm16yxy4flrh99alzzbqdyls44";
|
2018-08-11 13:01:45 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libndtypes ];
|
|
|
|
|
2018-09-12 12:03:02 -07:00
|
|
|
# Override linker with cc (symlink to either gcc or clang)
|
|
|
|
# Library expects to use cc for linking
|
2018-11-27 13:53:46 -08:00
|
|
|
configureFlags = [
|
|
|
|
# Override linker with cc (symlink to either gcc or clang)
|
|
|
|
# Library expects to use cc for linking
|
|
|
|
"LD=${stdenv.cc.targetPrefix}cc"
|
|
|
|
# needed for tests
|
|
|
|
"--with-includes=${libndtypes}/include"
|
|
|
|
"--with-libs=${libndtypes}/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2018-08-11 13:01:45 -07:00
|
|
|
|
|
|
|
meta = {
|
2018-11-27 13:53:46 -08:00
|
|
|
description = "C library for managing typed memory blocks and Python container module";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://xnd.io/";
|
2018-08-11 13:01:45 -07:00
|
|
|
license = lib.licenses.bsdOriginal;
|
|
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|