tvl-depot/third_party/glog/default.nix
Vincent Ambo 7e8a48c82c fix(3p/nix): Link to glog built by Nix
Same as cl/921, it seems that the trick to making this work is indeed
overriding the C++ standard used in the dependency.

Change-Id: I3c5984d71014d774c161ecc283844f504fd44719
Reviewed-on: https://cl.tvl.fyi/c/depot/+/922
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-07-05 16:54:12 +00:00

21 lines
474 B
Nix

{ pkgs, lib, ... }:
let inherit (pkgs) llvmPackages cmake;
in llvmPackages.libcxxStdenv.mkDerivation {
name = "glog";
version = "20200527-unstable";
src = ./.;
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DCMAKE_CXX_STANDARD=17"
"-WITH_GFLAGS=OFF"
];
meta = with lib; {
homepage = "https://github.com/google/glog";
license = licenses.bsd3;
description = "Library for application-level logging";
platforms = platforms.unix;
};
}