tvl-depot/users/flokli/archeology/default.nix
Florian Klink 314d1facd4 feat(users/flokli/archeology): add shell
Change-Id: Ic34fefdaac82fd1e23d248f2e5fec282384b8fc0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9984
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
2023-11-11 12:24:23 +00:00

17 lines
555 B
Nix

{ 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 ]}
'';
shell = pkgs.mkShell {
name = "archeology-shell";
packages = with pkgs; [ clickhouse rust-analyzer rustc rustfmt ];
};
}