at 23.05-pre 32 lines 929 B view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "range-v3"; 5 version = "0.12.0"; 6 7 src = fetchFromGitHub { 8 owner = "ericniebler"; 9 repo = "range-v3"; 10 rev = version; 11 hash = "sha256-bRSX91+ROqG1C3nB9HSQaKgLzOHEFy9mrD2WW3PRBWU="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 # Building the tests currently fails on AArch64 due to internal compiler 17 # errors (with GCC 9.2): 18 cmakeFlags = [ "-DRANGES_ENABLE_WERROR=OFF" ] 19 ++ lib.optional stdenv.isAarch64 "-DRANGE_V3_TESTS=OFF"; 20 21 doCheck = !stdenv.isAarch64; 22 checkTarget = "test"; 23 24 meta = with lib; { 25 description = "Experimental range library for C++11/14/17"; 26 homepage = "https://github.com/ericniebler/range-v3"; 27 changelog = "https://github.com/ericniebler/range-v3/releases/tag/${version}"; 28 license = licenses.boost; 29 platforms = platforms.all; 30 maintainers = with maintainers; [ ]; 31 }; 32}