about summary refs log blame commit diff
path: root/tvix/store/default.nix
blob: 4ec94cd90d9a06d9d34b39b878788b0ee8515f14 (plain) (tree)


















                                                                
{ 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;
}