fix(third_party/nixpkgs/crate2nix): reintroduce tests in debug patch

This is was dropped accidentially, but we actually want to run tests in
debug mode, to check for overflows.

Change-Id: Ic0cf2d4a263bfd71f3453ed335d8be9dacd945e8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10932
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2024-02-16 17:41:44 +07:00 committed by clbot
parent d20a97ccb8
commit 8b06566d43
3 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,12 @@
diff --git a/templates/nix/crate2nix/default.nix b/templates/nix/crate2nix/default.nix
index 4eefda8..d064118 100644
--- a/templates/nix/crate2nix/default.nix
+++ b/templates/nix/crate2nix/default.nix
@@ -111,6 +111,7 @@ rec {
(
_: {
buildTests = true;
+ release = false;
}
);
# If the user hasn't set any pre/post commands, we don't want to

View file

@ -94,7 +94,10 @@ depot.nix.readTree.drvTargets {
hash = "sha256-JTMe8GViCQt51WUiaaoIPmWtwEeeYrl6pBxo2DNuKig=";
};
patches = [ ./patches/crate2nix-run-tests-in-build-source.patch ];
patches = [
./patches/crate2nix-tests-debug.patch
./patches/crate2nix-run-tests-in-build-source.patch
];
sourceRoot = "${src.name}/crate2nix";

View file

@ -13342,6 +13342,7 @@ rec {
(
_: {
buildTests = true;
release = false;
}
);
# If the user hasn't set any pre/post commands, we don't want to