53 lines
1.1 KiB
Nix
53 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-02-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iv-org";
|
|
repo = "inv_sig_helper";
|
|
rev = "add99d6a654bae838b030914a7fef8252406fc45";
|
|
hash = "sha256-p1cbXYmKBoeXF4L9XKc5jc79KW8dxzDbjZiUSMJQDs8=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|