2023-11-11 11:08:02 +01:00
|
|
|
{ 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 ]}
|
|
|
|
'';
|
2023-11-11 11:12:26 +01:00
|
|
|
|
|
|
|
shell = pkgs.mkShell {
|
|
|
|
name = "archeology-shell";
|
|
|
|
packages = with pkgs; [ clickhouse rust-analyzer rustc rustfmt ];
|
|
|
|
};
|
2023-11-11 11:08:02 +01:00
|
|
|
}
|