2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2016-08-13 16:30:57 +00:00
|
|
|
|
2021-07-17 17:56:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "libdynd";
|
2021-07-17 17:56:23 +00:00
|
|
|
version = "0.7.2";
|
2016-08-13 16:30:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libdynd";
|
|
|
|
repo = "libdynd";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0fkd5rawqni1cq51fmr76iw7ll4fmbahfwv4rglnsabbkylf73pr";
|
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDYND_BUILD_BENCHMARKS=OFF"
|
|
|
|
];
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = builtins.toString [
|
2022-12-23 16:57:29 +00:00
|
|
|
# added to fix build with gcc7+
|
2018-03-13 21:20:59 +00:00
|
|
|
"-Wno-error=implicit-fallthrough"
|
|
|
|
"-Wno-error=nonnull"
|
2019-01-11 06:59:59 +00:00
|
|
|
"-Wno-error=tautological-compare"
|
|
|
|
"-Wno-error=class-memaccess"
|
|
|
|
"-Wno-error=parentheses"
|
2019-11-02 18:46:49 +00:00
|
|
|
"-Wno-error=deprecated-copy"
|
2022-12-23 16:57:29 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=maybe-uninitialized"
|
2018-03-13 21:20:59 +00:00
|
|
|
];
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-08-13 16:30:57 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-08-13 16:30:57 +00:00
|
|
|
outputDoc = "dev";
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "C++ dynamic ndarray library, with Python exposure";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://libdynd.org";
|
2016-08-13 16:30:57 +00:00
|
|
|
license = licenses.bsd2;
|
2018-03-13 21:20:59 +00:00
|
|
|
platforms = platforms.linux;
|
2016-08-13 16:30:57 +00:00
|
|
|
};
|
|
|
|
}
|