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