mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
1014 B
Nix
37 lines
1014 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";
|
|
|
|
env = lib.optionalAttrs stdenv.cc.isGNU {
|
|
NIX_CFLAGS_COMPILE = "-std=c++17";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|