Alyssa Ross 63bff8c132
treewide: migrate to fetchCargoVendor, batch 1
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

It should be possible to reproduce this diff.  To do so, get the list
of files changed by this commit, e.g. with git diff --name-only, then
run the following two commands, each with that list of files as their
standard input:

	xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/'
	cut -d / -f 4 | xargs -n 1 nix-update --version=skip

This will take a long time.  It might be possible to parallelize it
using xargs' -P option.  I haven't tested it.
2025-01-23 11:46:43 +01:00

36 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "genemichaels";
version = "0.5.13";
src = fetchFromGitHub {
owner = "andrewbaxter";
repo = "genemichaels";
rev = "genemichaels-v${version}";
hash = "sha256-pzGTKswETm7RR0up1eSWC+X633rsVmEAJ3DYM8z6paQ=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-J7uibeoIKLC3jo5TstzC8udK+miAA52321eapOHVzbM=";
cargoBuildFlags = [ "--package ${pname}" ];
# cargoTestFlags is not used because genemichaels is tightly coupled to the
# other crates in the workspace and by not setting it, we run all the tests.
# If a dependency crate is failing its tests, we want to know about it. For
# example, between versions 0.5.8 and 0.5.12, there was a failing test in one
# of the other workspace members that genemichaels depends on.
meta = {
description = "Even formats macros";
homepage = "https://github.com/andrewbaxter/genemichaels";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ djacu ];
mainProgram = "genemichaels";
};
}