genemichaels: add updateScript, switch to fetchCrate, 0.5.13 -> 0.8.5 (#455944)

This commit is contained in:
Gergő Gutyina
2025-12-09 10:49:25 +00:00
committed by GitHub
+8 -14
View File
@@ -1,28 +1,22 @@
{
lib,
rustPlatform,
fetchFromGitHub,
fetchCrate,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "genemichaels";
version = "0.5.13";
version = "0.8.5";
src = fetchFromGitHub {
owner = "andrewbaxter";
repo = "genemichaels";
rev = "genemichaels-v${version}";
hash = "sha256-pzGTKswETm7RR0up1eSWC+X633rsVmEAJ3DYM8z6paQ=";
src = fetchCrate {
inherit pname version;
hash = "sha256-5cM5VyS5w92CjP3nVumuUNkCFlhipukRhM8ERhE36n4=";
};
cargoHash = "sha256-J7uibeoIKLC3jo5TstzC8udK+miAA52321eapOHVzbM=";
cargoHash = "sha256-aJDtXsGVUxUrh3yLWEcobvFUqy/7PGFQHWIWU54zYdE=";
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.
passthru.updateScript = nix-update-script { };
meta = {
description = "Even formats macros";