
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/fetchCargoTarball/fetchCargoVendor/' 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.
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
rustPlatform,
|
|
rustc,
|
|
cargo,
|
|
wrapGAppsHook4,
|
|
blueprint-compiler,
|
|
libadwaita,
|
|
desktop-file-utils,
|
|
openssl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "televido";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "d-k-bo";
|
|
repo = "televido";
|
|
rev = "v${version}";
|
|
hash = "sha256-pMrMXRnfvpDLFkL2IqYJKRao/OF78mXUCBqBgT97+hc=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-o857QBRfANkk6e/zIwc0JLpsiP2+wCb5U7Umlx4xMdI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
rustPlatform.cargoSetupHook
|
|
rustc
|
|
cargo
|
|
wrapGAppsHook4
|
|
blueprint-compiler
|
|
openssl
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
desktop-file-utils
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Viewer for German-language public broadcasting live streams and archives";
|
|
homepage = "https://github.com/d-k-bo/televido";
|
|
license = licenses.gpl3;
|
|
mainProgram = "televido";
|
|
maintainers = with maintainers; [ seineeloquenz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|