nixpkgs/pkgs/development/libraries/range-v3/default.nix

36 lines
926 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake }:
2017-02-11 18:10:46 +00:00
stdenv.mkDerivation rec {
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 ];
# Building the tests currently fails on AArch64 due to internal compiler
# errors (with GCC 9.2):
cmakeFlags = lib.optional stdenv.isAarch64 "-DRANGE_V3_TESTS=OFF";
doCheck = !stdenv.isAarch64;
2018-03-01 21:46:03 +00:00
checkTarget = "test";
meta = with lib; {
2017-02-11 18:10:46 +00:00
description = "Experimental range library for C++11/14/17";
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
};
}