2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2018-11-27 22:52:34 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, libndtypes
|
|
|
|
, libxnd
|
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libgumath";
|
2020-09-12 02:21:45 +02:00
|
|
|
version = "unstable-2019-08-01";
|
2018-11-27 22:52:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-09-12 02:21:45 +02:00
|
|
|
owner = "xnd-project";
|
2018-11-27 22:52:34 +01:00
|
|
|
repo = "gumath";
|
2020-09-12 02:21:45 +02:00
|
|
|
rev = "360ed454105ac5615a7cb7d216ad25bc4181b876";
|
|
|
|
sha256 = "1wprkxpmjrk369fpw8rbq51r7jvqkcndqs209y7p560cnagmsxc6";
|
2018-11-27 22:52:34 +01: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 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-11-27 22:52:34 +01:00
|
|
|
description = "Library supporting function dispatch on general data containers. C base and Python wrapper";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://xnd.io/";
|
2018-11-27 22:52:34 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|