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 <flokli@flokli.de>
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-10-31 10:30:00 +02:00 committed by flokli
parent 54def82825
commit ea92ba788c

View file

@ -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: {