{"id":31614278,"url":"https://github.com/daste745/nix-bun","last_synced_at":"2026-05-07T15:40:59.134Z","repository":{"id":318226043,"uuid":"1070411986","full_name":"Daste745/nix-bun","owner":"Daste745","description":"Nix flake with all bunjs versions kept up to date daily","archived":false,"fork":false,"pushed_at":"2025-10-05T22:06:11.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T23:35:14.500Z","etag":null,"topics":["bun","bunjs","nix","nix-flake"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Daste745.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-10-05T21:36:54.000Z","updated_at":"2025-10-05T22:06:15.000Z","dependencies_parsed_at":"2025-10-05T23:35:16.982Z","dependency_job_id":"773fb616-6da2-4b9f-8b02-c7bd7f22cb23","html_url":"https://github.com/Daste745/nix-bun","commit_stats":null,"previous_names":["daste745/nix-bun"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Daste745/nix-bun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daste745%2Fnix-bun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daste745%2Fnix-bun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daste745%2Fnix-bun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daste745%2Fnix-bun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daste745","download_url":"https://codeload.github.com/Daste745/nix-bun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daste745%2Fnix-bun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278596698,"owners_count":26013124,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"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":["bun","bunjs","nix","nix-flake"],"created_at":"2025-10-06T10:37:02.193Z","updated_at":"2026-05-07T15:40:59.126Z","avatar_url":"https://github.com/Daste745.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nix-bun\n\nAll [Bun releases](https://github.com/oven-sh/bun/releases) as separate nix packages, updated daily.\n\nBun is built for the following systems. All are available in nix-bun:\n\n- `aarch64-darwin`\n- `aarch64-linux`\n- `x86_64-darwin`\n- `x86_64-linux`\n\n## Usage\n\n### flake.nix\n\nWhen using flakes, you can access all versions via `packages.${system}.\"version\"`.\n\n```nix\n{\n  inputs = {\n    nixpkgs.url = \"github:nixos/nixpkgs/nixpkgs-unstable\";\n    bun = {\n      url = \"github:Daste745/nix-bun\";\n      inputs.nixpkgs.follows = \"nixpkgs\";\n    };\n  };\n\n  outputs =\n    inputs:\n    let\n      system = \"x86_64-linux\";\n      pkgs = import inputs.nixpkgs { inherit system; };\n      bun = inputs.bun.packages.${system};\n    in\n    {\n      devShells.${system}.default = pkgs.mkShell {\n        # All versions can be accessed via `bun.\"version\"`\n        packages = [ bun.\"1.3.0\" ];\n      };\n    };\n}\n```\n\n### shell.nix (without flakes)\n\nWithout flakes, import nix-bun using nixpkgs for the target system. All versions are available as toplevel attributes of `default.nix`'s output.\n\nThis can be combined with [npins](https://github.com/andir/npins) or [niv](https://github.com/nmattia/niv) for more convenient flake-less dependency pinning.\n\n```nix\n{\n  pkgs ? import \u003cnixpkgs\u003e { },\n}:\nlet\n  # Also, preferrably lock to a specific commit + sha256\n  nix-bun = fetchTarball \"https://github.com/Daste745/nix-bun/archive/main.tar.gz\";\n  bun = import nix-bun { inherit pkgs; };\nin\npkgs.mkShell {\n  # All versions can be accessed via `bun.\"version\"`\n  packages = [ bun.\"1.3.0\" ];\n}\n```\n\n### Temporary nix shell\n\nUse `#'\"version\"'` to select a specific version of Bun to avoid shells unescaping the version:\n\n```sh\n$ nix shell github:Daste745/nix-bun#'\"1.3.0\"'\n```\n\n## References\n\n- [oven-sh/bun](https://github.com/oven-sh/bun)\n- [0xBigBoss/bun-overlay](https://github.com/0xBigBoss/bun-overlay)\n- [cachix/nixpkgs-python](https://github.com/cachix/nixpkgs-python)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaste745%2Fnix-bun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaste745%2Fnix-bun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaste745%2Fnix-bun/lists"}