2016-08-13 17:30:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
|
|
|
|
let version = "0.7.2"; in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libdynd-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libdynd";
|
|
|
|
repo = "libdynd";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0fkd5rawqni1cq51fmr76iw7ll4fmbahfwv4rglnsabbkylf73pr";
|
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDYND_BUILD_BENCHMARKS=OFF"
|
|
|
|
];
|
|
|
|
|
2018-03-13 21:20:59 +00:00
|
|
|
# added to fix build with gcc7
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=implicit-fallthrough"
|
|
|
|
"-Wno-error=nonnull"
|
|
|
|
];
|
|
|
|
|
2016-08-13 17:30:57 +01:00
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-08-13 17:30:57 +01:00
|
|
|
outputDoc = "dev";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "C++ dynamic ndarray library, with Python exposure.";
|
|
|
|
homepage = http://libdynd.org;
|
|
|
|
license = licenses.bsd2;
|
2018-03-13 21:20:59 +00:00
|
|
|
platforms = platforms.linux;
|
2016-08-13 17:30:57 +01:00
|
|
|
};
|
|
|
|
}
|