In reply to @zjfc "How to build a": Use the nim builder in nixpkgs. It will build your derivation from a lock file. You'll need to run nim_lk to map your nimble dependencies and generate a lock file. Simply pass the path of the lock file to the builder. `buildNimPackage.lockFile` https://github.com/NixOS/nixpkgs/blob/master/doc%2Flanguages-frameworks%2Fnim.se ction.md https://gitea.c3d2.de/ehmry/nim_lk