2018-03-01 13:46:03 -08:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2017-02-11 10:10:46 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "range-v3";
|
2020-08-08 04:54:58 -07:00
|
|
|
version = "0.11.0";
|
2017-02-11 10:10:46 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ericniebler";
|
|
|
|
repo = "range-v3";
|
2018-03-01 13:35:15 -08:00
|
|
|
rev = version;
|
2020-08-08 04:54:58 -07:00
|
|
|
sha256 = "18230bg4rq9pmm5f8f65j444jpq56rld4fhmpham8q3vr1c1bdjh";
|
2017-02-11 10:10:46 -08:00
|
|
|
};
|
|
|
|
|
2020-12-21 10:23:36 -08:00
|
|
|
patches = [
|
|
|
|
./gcc10.patch
|
|
|
|
];
|
|
|
|
|
2018-03-01 13:46:03 -08:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-01-24 15:33:31 -08: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 13:46:03 -08:00
|
|
|
checkTarget = "test";
|
|
|
|
|
2017-02-11 10:10:46 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Experimental range library for C++11/14/17";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/ericniebler/range-v3";
|
2020-08-08 04:54:58 -07:00
|
|
|
changelog = "https://github.com/ericniebler/range-v3/releases/tag/${version}";
|
2017-02-11 10:10:46 -08:00
|
|
|
license = licenses.boost;
|
|
|
|
platforms = platforms.all;
|
2019-10-04 12:33:25 -07:00
|
|
|
maintainers = with maintainers; [ primeos xwvvvvwx ];
|
2017-02-11 10:10:46 -08:00
|
|
|
};
|
|
|
|
}
|