46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
|
|
# nativeBuildInputs
|
|
pkg-config,
|
|
|
|
# buildInputs
|
|
openssl,
|
|
darwin,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "inv-sig-helper";
|
|
version = "0-unstable-2024-09-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iv-org";
|
|
repo = "inv_sig_helper";
|
|
rev = "5025e49e6106f93ec06d0e3fd542a51e1c44c25a";
|
|
hash = "sha256-fMRjkZRMvcro3pOO20l5zRDOwn/E5KTVBOiDmcGROz4=";
|
|
};
|
|
|
|
cargoHash = "sha256-AisolMo++xMDesdfafeGx37r7sGbk0P0vMsHq0YTUL4=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|