Buckets:
| { | |
| description = "OpenCode development flake"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
| }; | |
| outputs = | |
| { self, nixpkgs, ... }: | |
| let | |
| systems = [ | |
| "aarch64-linux" | |
| "x86_64-linux" | |
| "aarch64-darwin" | |
| "x86_64-darwin" | |
| ]; | |
| forEachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); | |
| rev = self.shortRev or self.dirtyShortRev or "dirty"; | |
| in | |
| { | |
| devShells = forEachSystem (pkgs: { | |
| default = pkgs.mkShell { | |
| packages = with pkgs; [ | |
| bun | |
| nodejs_20 | |
| pkg-config | |
| openssl | |
| git | |
| ]; | |
| }; | |
| }); | |
| overlays = { | |
| default = | |
| final: _prev: | |
| let | |
| node_modules = final.callPackage ./nix/node_modules.nix { | |
| inherit rev; | |
| }; | |
| in | |
| rec { | |
| opencode = final.callPackage ./nix/opencode.nix { | |
| inherit node_modules; | |
| }; | |
| opencode-desktop = final.callPackage ./nix/desktop.nix { | |
| inherit opencode; | |
| }; | |
| }; | |
| }; | |
| packages = forEachSystem ( | |
| pkgs: | |
| let | |
| node_modules = pkgs.callPackage ./nix/node_modules.nix { | |
| inherit rev; | |
| }; | |
| in | |
| rec { | |
| default = opencode; | |
| opencode = pkgs.callPackage ./nix/opencode.nix { | |
| inherit node_modules; | |
| }; | |
| opencode-desktop = pkgs.callPackage ./nix/desktop.nix { | |
| inherit opencode; | |
| }; | |
| # Updater derivation with fakeHash - build fails and reveals correct hash | |
| node_modules_updater = node_modules.override { | |
| hash = pkgs.lib.fakeHash; | |
| }; | |
| } | |
| ); | |
| }; | |
| } | |
Xet Storage Details
- Size:
- 1.83 kB
- Xet hash:
- e0bb40d3d4eaa0ef757a1df308324b56748ae2dc5b629658103727a7761ae631
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.