lol
1{ lib, stdenv
2, fetchFromGitHub
3, libndtypes
4, libxnd
5}:
6
7stdenv.mkDerivation {
8 pname = "libgumath";
9 version = "unstable-2019-08-01";
10
11 src = fetchFromGitHub {
12 owner = "xnd-project";
13 repo = "gumath";
14 rev = "360ed454105ac5615a7cb7d216ad25bc4181b876";
15 sha256 = "1wprkxpmjrk369fpw8rbq51r7jvqkcndqs209y7p560cnagmsxc6";
16 };
17
18 buildInputs = [ libndtypes libxnd ];
19
20 # Override linker with cc (symlink to either gcc or clang)
21 # Library expects to use cc for linking
22 configureFlags = [
23 "LD=${stdenv.cc.targetPrefix}cc"
24 ];
25
26 doCheck = true;
27
28 meta = with lib; {
29 description = "Library supporting function dispatch on general data containers. C base and Python wrapper";
30 homepage = "https://xnd.io/";
31 license = licenses.bsd3;
32 maintainers = [ maintainers.costrouc ];
33 };
34}