From 239e2312f55e5290f0ad03e4d7fce993a1cff7ac Mon Sep 17 00:00:00 2001 From: Brian May Date: Tue, 11 Aug 2026 12:44:05 +1000 Subject: [PATCH] tesla_auth: init at 0.15.0 (cherry picked from commit 3125aa9f72f0bf65cbb2c61d0f0a1809ec43e455) --- pkgs/by-name/te/tesla_auth/package.nix | 66 ++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 pkgs/by-name/te/tesla_auth/package.nix diff --git a/pkgs/by-name/te/tesla_auth/package.nix b/pkgs/by-name/te/tesla_auth/package.nix new file mode 100644 index 000000000000..71f6d745c842 --- /dev/null +++ b/pkgs/by-name/te/tesla_auth/package.nix @@ -0,0 +1,66 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, + pkg-config, + wrapGAppsHook3, + webkitgtk_4_1, + xdotool, + gtk3, + cairo, + pango, + gdk-pixbuf, + glib, + libsoup_3, + openssl, + glib-networking, + nss, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "tesla_auth"; + version = "0.15.0"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "adriankumpf"; + repo = "tesla_auth"; + tag = "v${finalAttrs.version}"; + hash = "sha256-nidbHxvvvmL0PAh+nNLlYBYM5riGdt4pL4w4UxdEdV0="; + }; + + cargoHash = "sha256-TkqxzB6ufCFbibVCFM4dI2ZNQpGneNNR7j73YTgI+hE="; + + nativeBuildInputs = [ + pkg-config + wrapGAppsHook3 + ]; + + buildInputs = [ + webkitgtk_4_1 + xdotool + gtk3 + cairo + pango + gdk-pixbuf + glib + libsoup_3 + openssl + glib-networking + nss + ]; + + env.STATIC_VCRUNTIME_NO_BUILD = "1"; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Securely generate API tokens for third-party access to your Tesla"; + homepage = "https://github.com/adriankumpf/tesla_auth"; + license = lib.licenses.mit; + mainProgram = "tesla_auth"; + maintainers = with lib.maintainers; [ brianmay ]; + }; +})