From ea92ba788c9eec9e9683fd06c7dd47fb3133155d Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 31 Oct 2023 10:30:00 +0200 Subject: chore(third_party/overlay): use crate2nix upstream Apply the patch that didn't land using `patches`. Change-Id: Id87675cd44123eea8cc2175efe04f61421f26f37 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9886 Autosubmit: flokli Reviewed-by: edef Tested-by: BuildkiteCI --- third_party/overlays/tvl.nix | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'third_party') diff --git a/third_party/overlays/tvl.nix b/third_party/overlays/tvl.nix index 7f67c80859c2..124756fd1887 100644 --- a/third_party/overlays/tvl.nix +++ b/third_party/overlays/tvl.nix @@ -108,27 +108,13 @@ depot.nix.readTree.drvTargets { }; })); - # Pin a newer version of crate2nix from git, which is not officially - # released but supports `dep:` and conditional features + # Apply a patch to run tests in debug, not release mode. crate2nix = super.crate2nix.overrideAttrs (old: rec { - version = "unstable-2023-09-26"; - - src = self.fetchFromGitHub { - owner = "nix-community"; - repo = "crate2nix"; - rev = "8a33aec8795dcc98afbb0cd1030bb1c939ede211"; - hash = "sha256-eFT2SUxTopxEvW0rcxSjQU6nbrQLI2FbyaVgtV8oiTk="; - }; - patches = old.patches ++ [ # run tests in debug mode, not release mode + # https://github.com/nix-community/crate2nix/pull/301 ./patches/crate2nix-tests-debug.patch ]; - - cargoDeps = old.cargoDeps.overrideAttrs (_: { - inherit src; - outputHash = "1ny4z06dy6zc3373x1a8pbzzv3jb52mpwn2g1nkr67pmfdq2b0q7"; - }); }); evans = super.evans.overrideAttrs (old: { -- cgit 1.4.1