Skip to content

chore(nix): add mold linker to shell.nix to improve linking speeds.#45

Merged
lockedmutex merged 2 commits intomainfrom
nix/add-mold-to-shell
Jan 25, 2026
Merged

chore(nix): add mold linker to shell.nix to improve linking speeds.#45
lockedmutex merged 2 commits intomainfrom
nix/add-mold-to-shell

Conversation

@lockedmutex
Copy link
Copy Markdown
Member

@lockedmutex lockedmutex commented Jan 25, 2026

Description: I added mold to required dependencies and set mold as the default linker while compiling the application, in shell.nix

@Lab-8916100448256 @jetcookies Can you test if you can compile the application and run it in the nix-shell/nix develop?

@Lab-8916100448256
Copy link
Copy Markdown
Member

Lab-8916100448256 commented Jan 25, 2026

For some reasons I have this error :

     Running `target/debug/picoforge`
target/debug/picoforge: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

modifying shell.nix like below is fixing that :

diff --git a/shell.nix b/shell.nix
index 123579d..d9d961e 100644
--- a/shell.nix
+++ b/shell.nix
@@ -17,6 +17,7 @@ let
     pcsclite
     hidapi
     mesa 
+    udev
   ];
 
   packages = with pkgs; [

@lockedmutex
Copy link
Copy Markdown
Member Author

lockedmutex commented Jan 25, 2026

@Lab-8916100448256 added udev check again

@Lab-8916100448256
Copy link
Copy Markdown
Member

Lab-8916100448256 commented Jan 25, 2026 via email

Copy link
Copy Markdown
Member

@Lab-8916100448256 Lab-8916100448256 left a comment

Choose a reason for hiding this comment

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

Works fine now.

@lockedmutex lockedmutex merged commit 682ffbc into main Jan 25, 2026
@lockedmutex lockedmutex deleted the nix/add-mold-to-shell branch March 5, 2026 16:20
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.

2 participants