From bf43f029d10dc84e3795750eecbf3d1970ebac26 Mon Sep 17 00:00:00 2001 From: Angel J <78835633+Iamanaws@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:05:00 -0700 Subject: [PATCH] t3code: 0.0.38 -> 0.0.40 Assisted-by: Cursor (GPT-5.6 Sol) --- pkgs/by-name/t3/t3code/unwrapped.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/t3/t3code/unwrapped.nix b/pkgs/by-name/t3/t3code/unwrapped.nix index 0d1d7a918d8e..cc16e960801f 100644 --- a/pkgs/by-name/t3/t3code/unwrapped.nix +++ b/pkgs/by-name/t3/t3code/unwrapped.nix @@ -6,11 +6,13 @@ installShellFiles, lib, libicns, + libsecret, makeBinaryWrapper, makeDesktopItem, nix-update-script, node-gyp, nodejs, + pkg-config, python3, stdenv, writeDarwinBundle, @@ -37,7 +39,7 @@ stdenv.mkDerivation ( in { pname = "t3code-unwrapped"; - version = "0.0.38"; + version = "0.0.40"; strictDeps = true; __structuredAttrs = true; @@ -45,7 +47,7 @@ stdenv.mkDerivation ( owner = "pingdotgg"; repo = "t3code"; tag = "v${finalAttrs.version}"; - hash = "sha256-lbAOIlNwVxrjXA5jJGzmOm7Fe2ZcsnFuDzaSEt6R7G4="; + hash = "sha256-J8kXpfMfm03/DDAiWXJuANwUNDshhiUn7Lf9tV42Xfw="; }; postPatch = '' @@ -65,7 +67,10 @@ stdenv.mkDerivation ( pnpm cacert ] - ++ lib.optionals stdenv.hostPlatform.isLinux [ copyDesktopItems ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + copyDesktopItems + pkg-config + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools.libtool libicns @@ -73,6 +78,8 @@ stdenv.mkDerivation ( xcbuild ]; + buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libsecret ]; + pnpmWorkspaces = [ # `...` suffix is used to also include other workspace packages that are # directly or indirectly depended on by the listed packages, such as @@ -93,7 +100,7 @@ stdenv.mkDerivation ( ; fetcherVersion = 4; - hash = "sha256-t/hmpXdYPnBFx18A6NrSL4zSvVnUDIjIPtLjGOzoaDk="; + hash = "sha256-+UsoURSM4VP+CgF1fWROBEB85EuH+iJJM/xDPFigCKk="; }; preBuild = '' @@ -139,6 +146,13 @@ stdenv.mkDerivation ( mkdir --parents "$out"/libexec/t3code/apps/desktop/prod-resources install --mode=444 ${desktopIcon} \ "$out"/libexec/t3code/apps/desktop/prod-resources/icon.png + '' + + lib.optionalString stdenv.hostPlatform.isLinux '' + install -Dm755 \ + native/browser-secret/build/${stdenv.hostPlatform.node.arch}/t3-browser-secret \ + "$out"/libexec/t3code/apps/desktop/prod-resources/browser-secret/t3-browser-secret + '' + + '' find "$out"/libexec/t3code -xtype l -delete