about summary refs log tree commit diff
path: root/users/flokli/archeology/default.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-11-11T10·08+0200
committerflokli <flokli@flokli.de>2023-11-11T12·24+0000
commit5ae49c5ccf9e98e75243b5156a2648e1cd7a285d (patch)
treef221f9f0d9245188ae29f683157492dbd5308026 /users/flokli/archeology/default.nix
parent8d02928b1493087b7f9e458411416ed268ce2112 (diff)
feat(users/flokli/archeology): init parse-bucket-logs r/6989
Change-Id: I096b6fed8c73ddd5a417f5183cc113356ffd98c9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9983
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'users/flokli/archeology/default.nix')
-rw-r--r--users/flokli/archeology/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/users/flokli/archeology/default.nix b/users/flokli/archeology/default.nix
new file mode 100644
index 000000000000..f5d7ae3fc339
--- /dev/null
+++ b/users/flokli/archeology/default.nix
@@ -0,0 +1,12 @@
+{ depot, pkgs, ... }:
+
+depot.nix.readTree.drvTargets {
+  parse-bucket-logs = pkgs.runCommand "archeology-parse-bucket-logs"
+    {
+      nativeBuildInputs = [ pkgs.makeWrapper ];
+    } ''
+    mkdir -p $out/bin
+    makeWrapper ${(pkgs.writers.writeRust "parse-bucket-logs-unwrapped" {} ./parse_bucket_logs.rs)} $out/bin/archeology-parse-bucket-logs \
+      --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.clickhouse ]}
+  '';
+}