diff options
author | Florian Klink <flokli@flokli.de> | 2022-11-11T22·48+0000 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2022-12-04T10·41+0000 |
commit | c432aae9b3a4924baa8b76cdc6f052f6fe70b730 (patch) | |
tree | 51ce02a8caa241eaf857d872136e0b3064be3c58 /tvix/store/default.nix | |
parent | 12413a669f96311cd83fe855c5e14e45abbe6754 (diff) |
feat(tvix/store): init r/5384
Change-Id: Id846647fa456ff8b187ed4f16d035ce030f11d25 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7264 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/store/default.nix')
-rw-r--r-- | tvix/store/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tvix/store/default.nix b/tvix/store/default.nix new file mode 100644 index 000000000000..4ec94cd90d9a --- /dev/null +++ b/tvix/store/default.nix @@ -0,0 +1,19 @@ +{ depot, pkgs, lib, ... }: + +let + protoRoot = depot.nix.sparseTree depot.path.origSrc [ + ./protos/castore.proto + ./protos/pathinfo.proto + ]; +in +depot.third_party.naersk.buildPackage { + src = depot.third_party.gitignoreSource ./.; + # see https://github.com/nix-community/naersk/issues/169 + root = depot.nix.sparseTree ./. [ ./Cargo.lock ./Cargo.toml ]; + + nativeBuildInputs = [ pkgs.protobuf ]; + + PROTO_ROOT = protoRoot; + + doCheck = true; +} |