c432aae9b3
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>
19 lines
452 B
Nix
19 lines
452 B
Nix
{ 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;
|
|
}
|