2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2018-11-27 21:52:34 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, libndtypes
|
|
|
|
, libxnd
|
|
|
|
}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libgumath";
|
2020-09-12 01:21:45 +01:00
|
|
|
version = "unstable-2019-08-01";
|
2018-11-27 21:52:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-09-12 01:21:45 +01:00
|
|
|
owner = "xnd-project";
|
2018-11-27 21:52:34 +00:00
|
|
|
repo = "gumath";
|
2020-09-12 01:21:45 +01:00
|
|
|
rev = "360ed454105ac5615a7cb7d216ad25bc4181b876";
|
|
|
|
sha256 = "1wprkxpmjrk369fpw8rbq51r7jvqkcndqs209y7p560cnagmsxc6";
|
2018-11-27 21:52:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libndtypes libxnd ];
|
|
|
|
|
|
|
|
# Override linker with cc (symlink to either gcc or clang)
|
|
|
|
# Library expects to use cc for linking
|
|
|
|
configureFlags = [
|
|
|
|
"LD=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-11-27 21:52:34 +00:00
|
|
|
description = "Library supporting function dispatch on general data containers. C base and Python wrapper";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://xnd.io/";
|
2018-11-27 21:52:34 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|