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:
parent
d20a97ccb8
commit
8b06566d43
3 changed files with 17 additions and 1 deletions
12
third_party/overlays/patches/crate2nix-tests-debug.patch
vendored
Normal file
12
third_party/overlays/patches/crate2nix-tests-debug.patch
vendored
Normal 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
|
5
third_party/overlays/tvl.nix
vendored
5
third_party/overlays/tvl.nix
vendored
|
@ -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";
|
||||
|
||||
|
|
|
@ -13342,6 +13342,7 @@ rec {
|
|||
(
|
||||
_: {
|
||||
buildTests = true;
|
||||
release = false;
|
||||
}
|
||||
);
|
||||
# If the user hasn't set any pre/post commands, we don't want to
|
||||
|
|
Loading…
Reference in a new issue