From 6485f89da4d5759d184666eecc08851f7c6b9dc6 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 7 Sep 2024 23:27:15 +0200 Subject: [PATCH] inv-sig-helper: init at 0-unstable-2024-08-17 --- pkgs/by-name/in/inv-sig-helper/package.nix | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/in/inv-sig-helper/package.nix diff --git a/pkgs/by-name/in/inv-sig-helper/package.nix b/pkgs/by-name/in/inv-sig-helper/package.nix new file mode 100644 index 000000000000000..5070b60abcddbee --- /dev/null +++ b/pkgs/by-name/in/inv-sig-helper/package.nix @@ -0,0 +1,46 @@ +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + + # nativeBuildInputs + pkg-config, + + # buildInputs + openssl, + darwin, +}: + +rustPlatform.buildRustPackage { + pname = "inv-sig-helper"; + version = "0-unstable-2024-08-17"; + + src = fetchFromGitHub { + owner = "iv-org"; + repo = "inv_sig_helper"; + rev = "215d32c76e5e9e598de6e4f8542316f80dd92f57"; + hash = "sha256-Ge0XoWrscyZSrkmtDPkAnv96IVylKZTcgGgonbFV43I="; + }; + + cargoHash = "sha256-JVpLUhNJ7/4WZwLn/zOurpP8kF5WblF3nphJh6keHG8="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.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"; + }; +}