{"repo":"shazow/foundry.nix","free":true,"listed":false,"github":"https://github.com/shazow/foundry.nix","clone":"git clone https://github.com/shazow/foundry.nix.git","description":"Nix overlay for gakonst/foundry (including forge and cast)","language":"Nix","stars":81,"topics":["nix","nixos","nix-flake","nixpkgs","ethereum"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"foundry.nix [!TIP] 🎉 foundry is in nixpkgs. If you don't need nightly releases, consider using the nixpkgs version. Nix overlay for foundry-rs/foundry (including forge , cast , anvil and chisel ) This repository is auto-updated daily with the latest nightly binary release, which are pruned from upstream regularly. We also maintain an rc and stable branch for the latest release from that stream which is not pruned. Usage: Showing off nix If we have nix v2.4 or newer, we run this repo and get forge is the default app target: We can also specify a target, such as cast : Flags are passed after the command is terminated with -- : We can enter a shell with all of the foundry binaries injected: Usage: Development shell Make a flake.nix in your solidity project directory: Then run nix develop to enter a shell with foundry binaries ( forge , cast , anvil and chisel ) present. Running nix flake update will repin to the latest foundry release from this repo (auto-updates daily). Usage: devenv Initialize devenv in your solidity project directory: Add this repo as an input in the devenv.yaml with the following shell command: And edit the devenv.nix : Then run devenv shell to enter a shell with foundry binaries present. Running devenv update will repin to the latest foundry release from this repo. You can run direnv allow to automatically enter a shell with foundry binaries everytime you cd to this directory, if you have direnv installed. NixOS Caveat The foundry forge and cast binaries a","default_branch":null,"files":null,"tree":[],"storefront":"/r/shazow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shazow/foundry.nix/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}