about summary refs log tree commit diff
path: root/third_party/glog
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-29T20·50+0100
committerVincent Ambo <tazjin@google.com>2020-05-29T20·50+0100
commit6302a89c6daf1e3303fc53206fd15a2e581eb916 (patch)
treecb2dfd0dd4580c09571f51c2c29ec9302266d867 /third_party/glog
parent25393d80806f7c7caed188130d3f7c9574e61ece (diff)
feat(3p/glog): Check in derivation for glog r/869
Instead of overriding the upstream one, lets keep it local.
Diffstat (limited to 'third_party/glog')
-rw-r--r--third_party/glog/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/glog/default.nix b/third_party/glog/default.nix
new file mode 100644
index 000000000000..cebb71c290d4
--- /dev/null
+++ b/third_party/glog/default.nix
@@ -0,0 +1,18 @@
+{ pkgs, lib, ... }:
+
+let inherit (pkgs) llvmPackages cmake;
+in llvmPackages.libcxxStdenv.mkDerivation {
+  name = "glog";
+  version = "20200527-unstable";
+  src = ./.;
+
+  nativeBuildInputs = [ cmake ];
+  cmakeFlags = [ "-WITH_GFLAGS=OFF" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/google/glog";
+    license = licenses.bsd3;
+    description = "Library for application-level logging";
+    platforms = platforms.unix;
+  };
+}