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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
929 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
2017-02-11 18:10:46 +00:00
stdenv.mkDerivation rec {
pname = "range-v3";
2022-07-13 00:10:29 +00:00
version = "0.12.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;
2022-07-13 00:10:29 +00:00
hash = "sha256-bRSX91+ROqG1C3nB9HSQaKgLzOHEFy9mrD2WW3PRBWU=";
2017-02-11 18:10:46 +00:00
};
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 = [ "-DRANGES_ENABLE_WERROR=OFF" ]
++ 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;
maintainers = with maintainers; [ ];
2017-02-11 18:10:46 +00:00
};
}