chore(third_party/crate2nix): run tests in /build/source

Cherry-pick of https://github.com/nix-community/crate2nix/pull/328. This
should fix rstest runs inside crate2nix-generated derivations.

Change-Id: I9d393768f7f764e33c5938bd8fa14bd1bb0b72e1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10650
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2024-01-16 22:00:41 +02:00 committed by flokli
parent 62b10cac44
commit 850a4bfc7b
3 changed files with 81 additions and 0 deletions

View file

@ -85,6 +85,8 @@ depot.nix.readTree.drvTargets {
hash = "sha256-JTMe8GViCQt51WUiaaoIPmWtwEeeYrl6pBxo2DNuKig=";
};
patches = [ ./patches/crate2nix-run-tests-in-build-source.patch ];
sourceRoot = "${src.name}/crate2nix";
cargoHash = "sha256-dhlSXY1CJE+JJt+6Y7W1MVMz36nwr6ny543py1TcjyY=";