about summary refs log tree commit diff
path: root/tvix/tools/crunch-v2/default.nix
blob: a3eb25eb9ad6609e8498ef38903b0865da80b94a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ pkgs, depot, lib, ... }:

(pkgs.callPackage ./Cargo.nix {
  defaultCrateOverrides = (depot.tvix.utils.defaultCrateOverridesForPkgs pkgs) // {
    crunch-v2 = prev: {
      src = depot.tvix.utils.filterRustCrateSrc rec {
        root = prev.src.origSrc;
        extraFileset = lib.fileset.fileFilter (f: f.hasExt "proto") root;
      };
      nativeBuildInputs = [ pkgs.protobuf ];
    };
  };
}).rootCrate.build