-
-
Notifications
You must be signed in to change notification settings - Fork 13
Building
Before building, ensure you have the following requirements installed:
- Rust - System programming language (1.90+)
-
PC/SC Middleware:
- Linux:
pcscd(usually pre-installed) - macOS: Built-in
- Windows: Built-in
- Linux:
cargo runcargo build --releaseThe compiled binary will be available in target/release/picoforge (Linux/macOS) or target/release/picoforge.exe (Windows).
Nix provides developers with a complete and consistent development environment.
You can use Nix to build and develop picoforge painlessly.
Follow the Installation Guide and NixOS Wiki to install Nix and enable Flakes.
You can build and run PicoForge with a single command:
nix run github:librekeys/picoforgeOr simply build it and link to the current directory:
nix build github:librekeys/picoforgeTip
You can use our binary cache to save build time by allowing Nix to set extra-substitutes.
Download the package definition:
curl -LO https://raw.githubusercontent.com/librekeys/picoforge/main/package.nixRun the following command in the directory containing package.nix:
nix-build -E 'with import <nixpkgs> {}; callPackage ./package.nix { }'The compiled binary will be available at: result/bin/picoforge
You can enter a developement environement with all the required dependencies.
nix develop github:librekeys/picoforgeYou can use the shell.nix file that is at the root of the repository by running:
nix-shellThen you can build from source and run the application with:
cargo run