Skip to content

chore: fix flake dynamic libraries, add binary target#2212

Merged
huacnlee merged 4 commits intolongbridge:mainfrom
VOID404:nix-fixes
Apr 13, 2026
Merged

chore: fix flake dynamic libraries, add binary target#2212
huacnlee merged 4 commits intolongbridge:mainfrom
VOID404:nix-fixes

Conversation

@VOID404
Copy link
Copy Markdown
Contributor

@VOID404 VOID404 commented Apr 2, 2026

Closes #2211

Description

I fixed nix setup. It now installs all the required dynamic libraries and configures LD_LIBRARY_PATH correctly.

I also added a setup for compiling/running gpui-component-story directly.

How to Test

Dev Shell

  1. nix develop
  2. cargo run

Binary Target

nix run to run the program, or

  1. nix build
  2. ./result/bin/gpui-component-story

Checklist

  • I have read the CONTRIBUTING document and followed the guidelines.
  • Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate.
  • Passed cargo run for story tests related to the changes.
  • Tested macOS, Windows and Linux platforms performance (if the change is platform-specific)

Tested only on my NixOS.

Comment thread flake.nix Outdated
"xim-ctext-0.3.0" = "sha256-pRT4Sz1JU9ros47/7pmIW9kosWOGMOItcnNd+VrvnpE=";
"zed-font-kit-0.14.1-zed" = "sha256-rxpumYP0QpHW+4e+J1qo5lEZXfBk1LaL/Y0APkUp9cg=";
"zed-reqwest-0.12.15-zed" = "sha256-p4SiUrOrbTlk/3bBrzN/mq/t+1Gzy2ot4nso6w6S+F8=";
"zed-scap-0.0.8-zed" = "sha256-BihiQHlal/eRsktyf0GI3aSWsUCW7WcICMsC2Xvb7kw=";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why here need sha256, if we update the crate should we need update here?

If true, this is hard to mantain.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd need to update here too, yes.

You are right, I'll simplify this 👌

VOID404 and others added 2 commits April 9, 2026 16:50
Replace explicit per-crate output hashes in flake.nix
with `allowBuiltinFetchGit = true`
so git-based crates can be fetched
without maintaining specific hashes.
@VOID404 VOID404 requested a review from huacnlee April 11, 2026 18:22
@huacnlee huacnlee changed the title Nix flake: fix dynamic libraries, add binary target chore: fix flake dynamic libraries, add binary target Apr 13, 2026
@huacnlee huacnlee merged commit 1913a4d into longbridge:main Apr 13, 2026
3 checks passed
AzureZee pushed a commit to AzureZee/gpui-component that referenced this pull request Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nix setup issues

2 participants