{"id":16014759,"url":"https://github.com/andyrichardson/nix-node","last_synced_at":"2025-03-17T16:30:30.107Z","repository":{"id":49275012,"uuid":"375727495","full_name":"andyrichardson/nix-node","owner":"andyrichardson","description":"The closest thing to nvm on Nix!","archived":false,"fork":false,"pushed_at":"2023-10-18T04:48:17.000Z","size":64,"stargazers_count":38,"open_issues_count":6,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T01:36:19.570Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyrichardson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-06-10T14:32:40.000Z","updated_at":"2025-01-22T23:06:36.000Z","dependencies_parsed_at":"2024-10-27T15:29:00.735Z","dependency_job_id":null,"html_url":"https://github.com/andyrichardson/nix-node","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":"0.18181818181818177","last_synced_commit":"20ea5cf6089b7afb0ac5ae5bcb6be519a23e8fea"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnix-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnix-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnix-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyrichardson%2Fnix-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyrichardson","download_url":"https://codeload.github.com/andyrichardson/nix-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871173,"owners_count":20361312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-08T15:05:04.080Z","updated_at":"2025-03-17T16:30:29.810Z","avatar_url":"https://github.com/andyrichardson.png","language":"Nix","readme":"# About\n\nAll releases of nodejs built and accessible under a single flake.\n\nIt's like `nvm` but for nix! \n\n## Setup\n\n### Setting up the registry\n\nVia the CLI\n\n```sh\nnix registry add node 'github:andyrichardson/nix-node'\n```\n\nIn `configuration.nix`\n\n```nix\nnix.registry.\"node\".to = {\n  type = \"github\";\n  owner = \"andyrichardson\";\n  repo = \"nix-node\";\n};\n```\n\n### Setting up the binary cache\n\nVia the CLI\n\n```sh\ncachix use nix-node\n```\n\nIn `configuration.nix`\n\n```nix\nnix.binaryCaches = [ \"https://cache.nixos.org/\" \"https://nix-node.cachix.org/\" ]\n```\n\n## Usage\n\nUsing latest major releases\n\n```sh\nnix shell node#16\n```\n\nUsing explicit release versions\n\n```sh\nnix shell node#16.3.0\n```\n\n## Contributing\n\nOpen to contributions for supporting more versions, architectures, etc.\n\n### Adding new versions\n\nGet the checksum for the new version.\n\n```sh\nversion=\"1.0.0\"\nnix-prefetch-url --type sha256 \"https://nodejs.org/dist/v$version/node-v$version.tar.xz\"\n```\n\nUpdate `flake.nix` with new version and checksum.\n\nUpdate [CI build](https://github.com/andyrichardson/nix-node/blob/master/.github/workflows/build.yml#L10) to build new version.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyrichardson%2Fnix-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyrichardson%2Fnix-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyrichardson%2Fnix-node/lists"}