
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.
41 lines
950 B
Nix
41 lines
950 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
libxkbcommon,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "wayfreeze";
|
|
version = "0-unstable-2024-12-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Jappie3";
|
|
repo = "wayfreeze";
|
|
rev = "5f7b7f50b69962b41a685c82fc9e82370d02275a";
|
|
hash = "sha256-ARnA0R5wZqHDIY+0le0F9okpJS4OI9XpLjN3vsmqUkY=";
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-jA+hVVV2hM/Hw/9rzGM63UuT/aq488kTMC/AKwSmoJk=";
|
|
|
|
buildInputs = [
|
|
libxkbcommon
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to freeze the screen of a Wayland compositor";
|
|
homepage = "https://github.com/Jappie3/wayfreeze";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
purrpurrn
|
|
jappie3 # upstream dev
|
|
];
|
|
mainProgram = "wayfreeze";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|