{"id":21590309,"url":"https://github.com/svelterust/bix","last_synced_at":"2025-10-10T03:38:54.403Z","repository":{"id":192215527,"uuid":"686296619","full_name":"svelterust/bix","owner":"svelterust","description":"Use Nix to build project and run it with Bun","archived":false,"fork":false,"pushed_at":"2024-06-13T11:39:04.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T22:09:38.387Z","etag":null,"topics":["bun","flake","nix"],"latest_commit_sha":null,"homepage":"","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/svelterust.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":"2023-09-02T10:22:04.000Z","updated_at":"2024-06-13T11:39:07.000Z","dependencies_parsed_at":"2023-09-03T12:36:10.354Z","dependency_job_id":"dbcf019e-d2b9-4107-9817-b8d5d20b727e","html_url":"https://github.com/svelterust/bix","commit_stats":null,"previous_names":["knarkzel/bix","svelterust/bix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/svelterust/bix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Fbix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Fbix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Fbix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Fbix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svelterust","download_url":"https://codeload.github.com/svelterust/bix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Fbix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002619,"owners_count":26083425,"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-10T02:00:06.843Z","response_time":62,"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","flake","nix"],"created_at":"2024-11-24T16:17:35.935Z","updated_at":"2025-10-10T03:38:54.360Z","avatar_url":"https://github.com/svelterust.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bix\n\nFor `bun` you need a `yarn.lock`, make sure to install that automatically with following in `~/.bunfig.toml`:\n\n```toml\n[install.lockfile]\nprint = \"yarn\"\n\n```\n\n# Use `bun`\n\n```nix\n{\n  inputs = {\n    nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n    bix = {\n      url = \"github:knarkzel/bix\";\n      inputs.nixpkgs.follows = \"nixpkgs\";\n    };\n  };\n\n  outputs = { bix, ... }: {\n    packages.x86_64-linux = bix.buildBunPackage {\n      src = ./.;\n      packages = ./package.json;\n      hash = \"run-nix-build-for-the-hash\";\n    };\n  };\n}\n\n```\n\n# Use `node`\n\n```nix\n{\n  inputs = {\n    nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n    bix = {\n      url = \"github:knarkzel/bix\";\n      inputs.nixpkgs.follows = \"nixpkgs\";\n    };\n  };\n\n  outputs = { bix, ... }: {\n    packages.x86_64-linux = bix.buildNodePackage {\n      src = ./.;\n      packages = ./package.json;\n      hash = \"run-nix-build-for-the-hash\";\n    };\n  };\n}\n```\n\n# Fix issue building vips when using sharp\n\n```nix\n{\n  inputs = {\n    nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n    bix = {\n      url = \"github:knarkzel/bix\";\n      inputs.nixpkgs.follows = \"nixpkgs\";\n    };\n  };\n\n  outputs = { nixpkgs, bix, ... }: let\n    system = \"x86_64-linux\";\n    pkgs = import nixpkgs {\n      inherit system;\n    };\n  in {\n    packages.x86_64-linux = bix.buildNodePackage {\n      src = ./.;\n      packages = ./package.json;\n      hash = \"run-nix-build-for-the-hash\";\n      config = {\n        buildInputs = [pkgs.vips];\n        nativeBuildInputs = [pkgs.pkg-config pkgs.python3];\n        npmInstallFlags = [\"--build-from-source\"];\n      };\n    };\n  };\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelterust%2Fbix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvelterust%2Fbix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelterust%2Fbix/lists"}