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.
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchCrate,
|
|
pkg-config,
|
|
libpulseaudio,
|
|
gtk4-layer-shell,
|
|
gtk4,
|
|
wrapGAppsHook4,
|
|
libxcb,
|
|
installShellFiles,
|
|
enableWayland ? true,
|
|
enableSass ? true,
|
|
enableX11 ? true,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mixxc";
|
|
version = "0.2.4";
|
|
|
|
src = fetchCrate {
|
|
pname = "mixxc";
|
|
inherit version;
|
|
hash = "sha256-9ZQjNhmQKMfEJsMMpUBI8C6ebfl9UI4yBt6f331tFXU=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-Ng4Vbk00m66qdm0lMaQ5Ab56x3kZKq8NsCDMTPVnQ3c=";
|
|
|
|
cargoBuildFlags = [ "--locked" ];
|
|
|
|
buildFeatures = [
|
|
(lib.optionals enableWayland "Wayland")
|
|
(lib.optionals enableX11 "X11")
|
|
(lib.optionals enableSass "Sass")
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
installShellFiles
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
libpulseaudio
|
|
gtk4
|
|
(lib.optionals enableWayland gtk4-layer-shell)
|
|
(lib.optionals enableX11 libxcb)
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
postInstall = ''
|
|
installManPage $src/doc/mixxc.1
|
|
'';
|
|
|
|
meta = {
|
|
description = "Minimalistic and customizable volume mixer";
|
|
homepage = "https://github.com/Elvyria/mixxc";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ daru-san ];
|
|
mainProgram = "mixxc";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|