nixpkgs/pkgs/development/libraries/libdynd/default.nix

41 lines
918 B
Nix
Raw Normal View History

2016-08-13 18:30:57 +02:00
{ stdenv, fetchFromGitHub, cmake }:
let version = "0.7.2"; in
stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "libdynd";
inherit version;
2016-08-13 18:30:57 +02:00
src = fetchFromGitHub {
owner = "libdynd";
repo = "libdynd";
rev = "v${version}";
sha256 = "0fkd5rawqni1cq51fmr76iw7ll4fmbahfwv4rglnsabbkylf73pr";
};
cmakeFlags = [
"-DDYND_BUILD_BENCHMARKS=OFF"
];
2019-11-02 19:46:49 +01:00
# added to fix build with gcc7+
2019-10-30 03:23:29 +01:00
NIX_CFLAGS_COMPILE = builtins.toString [
2018-03-13 22:20:59 +01:00
"-Wno-error=implicit-fallthrough"
"-Wno-error=nonnull"
2019-01-11 07:59:59 +01:00
"-Wno-error=tautological-compare"
"-Wno-error=class-memaccess"
"-Wno-error=parentheses"
2019-11-02 19:46:49 +01:00
"-Wno-error=deprecated-copy"
2018-03-13 22:20:59 +01:00
];
2016-08-13 18:30:57 +02:00
buildInputs = [ cmake ];
outputs = [ "out" "dev" ];
2016-08-13 18:30:57 +02:00
outputDoc = "dev";
meta = with stdenv.lib; {
description = "C++ dynamic ndarray library, with Python exposure.";
homepage = "http://libdynd.org";
2016-08-13 18:30:57 +02:00
license = licenses.bsd2;
2018-03-13 22:20:59 +01:00
platforms = platforms.linux;
2016-08-13 18:30:57 +02:00
};
}