tvl-depot/tvix/store/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
452 B
Nix
Raw Normal View History

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