tvl-depot/third_party/abseil_cpp/default.nix
Kane York 9f5f71616a feat(3p/absl): import StatusOr from tensorflow
Additionally, add tests for the macros. A future CL will enable the tests in CI.

Change-Id: Id4445a1aa65bf6751b87606f37654f3fc6d20efc
Tested-By: kanepyork <rikingcoding@gmail.com>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1274
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
2020-07-19 00:51:00 +00:00

23 lines
577 B
Nix

{ pkgs, lib, ... }:
let inherit (pkgs) cmake llvmPackages;
in llvmPackages.libcxxStdenv.mkDerivation rec {
pname = "abseil-cpp";
version = "20200519-768eb2ca+tvl-1";
src = ./.;
nativeBuildInputs = [ cmake ];
# TODO: run tests
# doCheck = true;
cmakeFlags = [
"-DCMAKE_CXX_STANDARD=17"
#"-DABSL_RUN_TESTS=1"
];
meta = with lib; {
description = "An open-source collection of C++ code designed to augment the C++ standard library";
homepage = https://abseil.io/;
license = licenses.asl20;
maintainers = [ maintainers.andersk ];
};
}