2018-03-01 21:46:03 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2017-02-11 18:10:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "range-v3";
|
2019-12-09 13:37:52 +00:00
|
|
|
version = "0.10.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;
|
2019-12-09 13:37:52 +00:00
|
|
|
sha256 = "1h9h5j7pdi0afpip9ncq76h1xjhvb8bnm585q17afz2l4fydy8qj";
|
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):
|
|
|
|
cmakeFlags = stdenv.lib.optional stdenv.isAarch64 "-DRANGE_V3_TESTS=OFF";
|
|
|
|
|
|
|
|
doCheck = !stdenv.isAarch64;
|
2018-03-01 21:46:03 +00:00
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-02-11 18:10:46 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Experimental range library for C++11/14/17";
|
|
|
|
homepage = https://github.com/ericniebler/range-v3;
|
|
|
|
license = licenses.boost;
|
|
|
|
platforms = platforms.all;
|
2019-10-04 20:33:25 +01:00
|
|
|
maintainers = with maintainers; [ primeos xwvvvvwx ];
|
2017-02-11 18:10:46 +00:00
|
|
|
};
|
|
|
|
}
|