{"id":13523816,"url":"https://github.com/ninegua/ic-nix","last_synced_at":"2026-05-15T09:19:41.859Z","repository":{"id":36975859,"uuid":"492939280","full_name":"ninegua/ic-nix","owner":"ninegua","description":"Build Internet Computer projects with Nix","archived":false,"fork":false,"pushed_at":"2026-04-25T16:56:13.000Z","size":347,"stargazers_count":39,"open_issues_count":7,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-25T18:26:40.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ninegua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-16T17:41:59.000Z","updated_at":"2026-04-16T14:04:04.000Z","dependencies_parsed_at":"2023-11-20T05:25:40.013Z","dependency_job_id":"ebed6a86-a9d0-40d4-bcc8-173f773786fc","html_url":"https://github.com/ninegua/ic-nix","commit_stats":null,"previous_names":[],"tags_count":70,"template":false,"template_full_name":null,"purl":"pkg:github/ninegua/ic-nix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Fic-nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Fic-nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Fic-nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Fic-nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninegua","download_url":"https://codeload.github.com/ninegua/ic-nix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninegua%2Fic-nix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32285283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"online","status_checked_at":"2026-04-26T02:00:05.962Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:01:03.983Z","updated_at":"2026-05-15T09:19:41.854Z","avatar_url":"https://github.com/ninegua.png","language":"Nix","funding_links":[],"categories":["Developer Tooling"],"sub_categories":["Moonbit"],"readme":"# Build Internet Computer Projects with Nix\n\n![ci](https://github.com/ninegua/ic-nix/actions/workflows/ci.yml/badge.svg?branch=main)\n![release](https://github.com/ninegua/ic-nix/actions/workflows/release.yml/badge.svg)\n\nUnofficial build of common toolkits used by developers of the [Internet Computer](https://wiki.internetcomputer.org) (IC) blockchain.\n\n- Directly built from source.\n- Cross-platform (Linux and Mac OS X, `x86_64` and `aarch64`).\n- Mostly statically linked with no extra runtime dependency other than libc.\n- Regular build of latest versions of everything.\n- Battery-loaded SDK environment for IC via nix-shell.\n\n**Usage**\n\nIf you just need the latest binary pre-built for your platforms, go to [release page](https://github.com/ninegua/ic-nix/releases/latest).\n\nIf you are a Nix user, you can start a canister development environment with a single `nix-shell` command.\nThis will give you immediate access to commands like `dfx`, `moc`, `didc`, `ic-repl`, and many many others.\n```\nnix-shell https://github.com/ninegua/ic-nix/releases/latest/download/dfx-env.tar.gz\n```\n\nAdditionally if you are interested in developing individual projects included here, you can\n- build a project by `nix-build -A \u003cproject\u003e`, or\n- enter a project's development environment by `nix-shell -A \u003cproject\u003e.shell`.\n\nIf you are not a Nix user, all you need is a working [nix] installation on your computer to get started.\n\n**Compile from source**\n\nFor those who prefer to compile from source:\n```\nnix-shell --arg force true https://github.com/ninegua/ic-nix/releases/latest/download/dfx-env.tar.gz\n```\n\nPre-compiled Nix derivations are also available if you use Nix binary cache (courtesy of [cachix]) `nix-shell -p cachix --run 'cachix use ninegua'`.\n\n**VSCode/direnv**\n\nAssuming you're developing on `ic`.\n\n1. Make sure you have [`direnv`](https://direnv.net/) installed.\n1. Clone this repo next to `ic`.\n2. Under `ic/rs`: run `echo \"use nix ../../ic-nix/default.nix -A ic.shell\" \u003e .envrc`. \n3. In the same directory, run `direnv allow .`\n\nIf using VSCode, you should also install the [direnv vscode extension](https://marketplace.visualstudio.com/items?itemName=mkhl.direnv), to make sure that rust-analyzer will be using the same versions of Rust as your shell.\n\n**WARNING**\n\nReleases are built against the latest main branches of each project at the time. They may not always work. Please understand the risks before proceed.\n\n**Supported projects**\n\n - [ic]\n - [icp-cli]\n - [sdk]\n - [motoko]\n - [agent-rs]\n - [candid]\n - [icx-proxy]\n - [cdk-rs]\n - [dfx-extensions]\n - [ic-repl]\n - [ic-wasm]\n - [idl2json]\n - [vessel]\n\nSupported platforms and nixpkgs:\n\n|                  | 25.11    |\n| -------------    | -------- |\n| darwin x86_64    |    ❌    |\n| linux  x86_64    |    ✅︎    |\n| darwin aarch64   |    ✅︎    |\n\nOnly the outdated nixpkgs 23.05 supports darwin `x86_64`, and it does not provide the required empscripten version to compile motoko.\n\nFeature:\n\n- [x] Build native binaries with nix-build with glibc.\n- [x] Dynamic binaries with minimal dependencies: glibc on Linux, system libs on OS X.\n- [x] Build Wasm binaries with nix-build.\n- [x] Develop with nix-shell.\n- [x] Build release binaries on Github.\n- [ ] Build and run all tests.\n\nNote that this effort requires no nix support of a project unless it already has.\n\n[nix]: https://nixos.org/download.html\n[ic]: https://github.com/dfinity/ic\n[icp-cli]: https://github.com/dfinity/icp-cli\n[sdk]: https://github.com/dfinity/sdk\n[motoko]: https://github.com/dfinity/motoko\n[cachix]: https://github.com/cachix/cachix\n[candid]: https://github.com/dfinity/candid\n[icx-proxy]: https://github.com/dfinity/icx-proxy\n[ic-repl]: https://github.com/chenyan2002/ic-repl\n[ic-wasm]: https://github.com/dfinity/ic-wasm\n[idl2json]: https://github.com/dfinity/idl2json\n[vessel]: https://github.com/dfinity/vessel\n[cdk-rs]: https://github.com/dfinity/cdk-rs\n[agent-rs]: https://github.com/dfinity/agent-rs\n[dfx-extensions]: https://github.com/dfinity/dfx-extensions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninegua%2Fic-nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninegua%2Fic-nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninegua%2Fic-nix/lists"}