{"id":15667920,"url":"https://github.com/rupurt/bun-nix","last_synced_at":"2025-03-30T04:41:30.671Z","repository":{"id":206306768,"uuid":"716323671","full_name":"rupurt/bun-nix","owner":"rupurt","description":"Nix flake for bun.sh","archived":false,"fork":false,"pushed_at":"2023-11-27T06:49:21.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T06:46:24.134Z","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/rupurt.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}},"created_at":"2023-11-08T22:34:55.000Z","updated_at":"2024-06-20T19:39:31.000Z","dependencies_parsed_at":"2023-11-27T07:39:59.288Z","dependency_job_id":"22e0e01c-6bc9-414b-b810-c4348b08b082","html_url":"https://github.com/rupurt/bun-nix","commit_stats":null,"previous_names":["rupurt/bun-nix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fbun-nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fbun-nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fbun-nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fbun-nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rupurt","download_url":"https://codeload.github.com/rupurt/bun-nix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277351,"owners_count":20751548,"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-03T14:05:50.750Z","updated_at":"2025-03-30T04:41:30.652Z","avatar_url":"https://github.com/rupurt.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bun-nix\n\nNix flake to for [bun.sh](https://bun.sh). A fast NodeJS runtime\n\n## Usage\n\nThis `bun` `nix` flake assumes you have already [installed nix](https://determinate.systems/posts/determinate-nix-installer)\n\n### Option 1. Use the `bun` CLI within your own flake\n\n```nix\n{\n  inputs.nixpkgs.url = \"github:nixos/nixpkgs\";\n  inputs.bun-nix.url = \"github:rupurt/bun-nix\";\n  inputs.flake-utils.url = \"github:numtide/flake-utils\";\n\n  outputs = {\n    self,\n    nixpkgs,\n    flake-utils,\n    bun-nix,\n    ...\n  }:\n    flake-utils.lib.eachDefaultSystem (system:\n      let\n        pkgs = import nixpkgs {\n          inherit system;\n          overlays = [\n            bun-nix.overlay\n          ];\n        };\n      in\n      {\n        devShells.default = pkgs.mkShell {\n          packages = [\n            # to use a specific version tag\n            # bun = pkgs.bunpkgs.bun_1_1_12 {};\n            #\n            # to use a version not exported from this package\n            # - get the sha256 for your host `nix hash to-sri --type sha256 $(nix-prefetch-url --unpack https://github.com/oven-sh/bun/releases/download/bun-v1.0.9/bun-linux-x64.zip)`\n            # - pass the specialArgs overrides\n            # bun = pkgs.bunpkgs.default {\n            #   specialArgs = {\n            #     version = \"1.0.9\";\n            #     shas = {\n            #       x86_64-linux = \"sha256-R3l30NssWzt18cRZAidLLsBBBtV3NaCUm8dl4kMvIck=\"\n            #     };\n            #   };\n            # };\n            pkgs.bunpkgs.default\n          ];\n        };\n      }\n    );\n}\n```\n\nThe above config will add `bun` to your dev shell and also allow you to execute it\nthrough the `nix` CLI utilities.\n\n```sh\n# run from devshell\nnix develop -c $SHELL\nbun --version\n```\n\n```sh\n# run as application\nnix run .#bun -- --version\n```\n\n### Option 2. Run the `bun` CLI directly with `nix run`\n\n```nix\nnix run github:rupurt/bun-nix -- --version\n```\n\n## Authors\n\n- Alex Kwiatkowski - alex+git@fremantle.io\n\n## License\n\n`bun-nix` is released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Fbun-nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frupurt%2Fbun-nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Fbun-nix/lists"}