about summary refs log tree commit diff
path: root/users/edef/crunch-v2/default.nix
blob: 8014aa9443c88a04189498b6a79bad074839f47b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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.overrideAttrs {
  meta.ci.extraSteps.crate2nix-check = depot.tvix.utils.mkCrate2nixCheck ./Cargo.nix;
}