mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
41 lines
916 B
Nix
41 lines
916 B
Nix
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
let version = "0.7.2"; in
|
|
stdenv.mkDerivation {
|
|
pname = "libdynd";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libdynd";
|
|
repo = "libdynd";
|
|
rev = "v${version}";
|
|
sha256 = "0fkd5rawqni1cq51fmr76iw7ll4fmbahfwv4rglnsabbkylf73pr";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DDYND_BUILD_BENCHMARKS=OFF"
|
|
];
|
|
|
|
# added to fix build with gcc7+
|
|
NIX_CFLAGS_COMPILE = builtins.toString [
|
|
"-Wno-error=implicit-fallthrough"
|
|
"-Wno-error=nonnull"
|
|
"-Wno-error=tautological-compare"
|
|
"-Wno-error=class-memaccess"
|
|
"-Wno-error=parentheses"
|
|
"-Wno-error=deprecated-copy"
|
|
];
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
outputDoc = "dev";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "C++ dynamic ndarray library, with Python exposure.";
|
|
homepage = http://libdynd.org;
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|