2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2017-02-11 18:10:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "range-v3";
|
2020-08-08 11:54:58 +00:00
|
|
|
version = "0.11.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;
|
2020-08-08 11:54:58 +00:00
|
|
|
sha256 = "18230bg4rq9pmm5f8f65j444jpq56rld4fhmpham8q3vr1c1bdjh";
|
2017-02-11 18:10:46 +00:00
|
|
|
};
|
|
|
|
|
2020-12-21 18:23:36 +00:00
|
|
|
patches = [
|
|
|
|
./gcc10.patch
|
|
|
|
];
|
|
|
|
|
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):
|
2021-01-21 17:00:13 +00:00
|
|
|
cmakeFlags = 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;
|
2021-08-08 17:11:45 +00:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2017-02-11 18:10:46 +00:00
|
|
|
};
|
|
|
|
}
|