54 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
# nativeBuildInputs
pkg-config,
# buildInputs
openssl,
# passthru
nixosTests,
unstableGitUpdater,
}:
rustPlatform.buildRustPackage {
pname = "inv-sig-helper";
version = "0-unstable-2025-04-23";
src = fetchFromGitHub {
owner = "iv-org";
repo = "inv_sig_helper";
rev = "5d3c7a4574fafe0bc5fbed9e7e33483889832fd4";
hash = "sha256-WGh62tjKGe9OD19aq+lP9GfYs5PrGqkeT6VvmtNottQ=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-DnJL7kkcVn5dW3AoPCn829WmkaCjpDZtYUXnpiB857Q=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
passthru = {
tests = {
inherit (nixosTests) invidious;
};
updateScript = unstableGitUpdater { };
};
meta = {
description = "Rust service that decrypts YouTube signatures and manages player information";
homepage = "https://github.com/iv-org/inv_sig_helper";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "inv_sig_helper_rust";
};
}