depot/third_party/nixpkgs/pkgs/development/libraries/range-v3/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

32 lines
925 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "range-v3";
version = "0.12.0";
src = fetchFromGitHub {
owner = "ericniebler";
repo = "range-v3";
rev = version;
hash = "sha256-bRSX91+ROqG1C3nB9HSQaKgLzOHEFy9mrD2WW3PRBWU=";
};
nativeBuildInputs = [ cmake ];
# Building the tests currently fails on AArch64 due to internal compiler
# errors (with GCC 9.2):
cmakeFlags = [ "-DRANGES_ENABLE_WERROR=OFF" ]
++ lib.optional stdenv.hostPlatform.isAarch64 "-DRANGE_V3_TESTS=OFF";
doCheck = !stdenv.hostPlatform.isAarch64;
checkTarget = "test";
meta = with lib; {
description = "Experimental range library for C++11/14/17";
homepage = "https://github.com/ericniebler/range-v3";
changelog = "https://github.com/ericniebler/range-v3/releases/tag/${version}";
license = licenses.boost;
platforms = platforms.all;
maintainers = [ ];
};
}