2022-01-01 22:44:09 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
|
2017-02-11 18:10:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "range-v3";
|
2022-07-13 00:10:29 +00:00
|
|
|
version = "0.12.0";
|
2017-02-11 18:10:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ericniebler";
|
|
|
|
repo = "range-v3";
|
2018-03-01 21:35:15 +00:00
|
|
|
rev = version;
|
2022-07-13 00:10:29 +00:00
|
|
|
hash = "sha256-bRSX91+ROqG1C3nB9HSQaKgLzOHEFy9mrD2WW3PRBWU=";
|
2017-02-11 18:10:46 +00:00
|
|
|
};
|
|
|
|
|
2018-03-01 21:46:03 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-01-24 23:33:31 +00:00
|
|
|
# Building the tests currently fails on AArch64 due to internal compiler
|
|
|
|
# errors (with GCC 9.2):
|
2022-01-01 22:44:09 +00:00
|
|
|
cmakeFlags = [ "-DRANGES_ENABLE_WERROR=OFF" ]
|
|
|
|
++ lib.optional stdenv.isAarch64 "-DRANGE_V3_TESTS=OFF";
|
2020-01-24 23:33:31 +00:00
|
|
|
|
|
|
|
doCheck = !stdenv.isAarch64;
|
2018-03-01 21:46:03 +00:00
|
|
|
checkTarget = "test";
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-02-11 18:10:46 +00:00
|
|
|
description = "Experimental range library for C++11/14/17";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ericniebler/range-v3";
|
2020-08-08 11:54:58 +00:00
|
|
|
changelog = "https://github.com/ericniebler/range-v3/releases/tag/${version}";
|
2017-02-11 18:10:46 +00:00
|
|
|
license = licenses.boost;
|
|
|
|
platforms = platforms.all;
|
2022-01-02 12:02:37 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-02-11 18:10:46 +00:00
|
|
|
};
|
|
|
|
}
|