blob: 6018e00f944ec42611a5c239c148fef5953574b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "libdynd";
version = "0.7.2";
src = fetchFromGitHub {
owner = "libdynd";
repo = "libdynd";
rev = "v${version}";
sha256 = "0fkd5rawqni1cq51fmr76iw7ll4fmbahfwv4rglnsabbkylf73pr";
};
cmakeFlags = [
"-DDYND_BUILD_BENCHMARKS=OFF"
];
NIX_CFLAGS_COMPILE = builtins.toString [
# added to fix build with gcc7+
"-Wno-error=implicit-fallthrough"
"-Wno-error=nonnull"
"-Wno-error=tautological-compare"
"-Wno-error=class-memaccess"
"-Wno-error=parentheses"
"-Wno-error=deprecated-copy"
# Needed with GCC 12
"-Wno-error=deprecated-declarations"
"-Wno-error=maybe-uninitialized"
];
nativeBuildInputs = [ cmake ];
outputs = [ "out" "dev" ];
outputDoc = "dev";
meta = with lib; {
description = "C++ dynamic ndarray library, with Python exposure";
homepage = "http://libdynd.org";
license = licenses.bsd2;
platforms = platforms.linux;
};
}
|