GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — openagent/flake.nix at dev · pti13/openagent Expand file tree/ Copy pathflake.nixMore file actions 107 lines (103 loc) · 2.69 KB / Copy pathflake.nixFile metadata and controls107 lines (103 loc) · 2.69 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 { description = "OpenCode development flake"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; outputs = { nixpkgs, ... }: let systems = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ]; lib = nixpkgs.lib; forEachSystem = lib.genAttrs systems; pkgsFor = system: nixpkgs.legacyPackages.${system}; packageJson = builtins.fromJSON (builtins.readFile ./packages/opencode/package.json); bunTarget = { "aarch64-linux" = "bun-linux-arm64"; "x86_64-linux" = "bun-linux-x64"; "aarch64-darwin" = "bun-darwin-arm64"; "x86_64-darwin" = "bun-darwin-x64"; }; defaultNodeModules = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; hashesFile = "${./nix}/hashes.json"; hashesData = if builtins.pathExists hashesFile then builtins.fromJSON (builtins.readFile hashesFile) else { }; nodeModulesHash = hashesData.nodeModules or defaultNodeModules; modelsDev = forEachSystem ( system: let pkgs = pkgsFor system; in pkgs."models-dev" ); in { devShells = forEachSystem ( system: let pkgs = pkgsFor system; in { default = pkgs.mkShell { packages = with pkgs; [ bun nodejs_20 pkg-config openssl git ]; }; } ); packages = forEachSystem ( system: let pkgs = pkgsFor system; mkNodeModules = pkgs.callPackage ./nix/node-modules.nix { hash = nodeModulesHash; }; mkPackage = pkgs.callPackage ./nix/opencode.nix { }; in { default = mkPackage { version = packageJson.version; src = ./.; scripts = ./nix/scripts; target = bunTarget.${system}; modelsDev = "${modelsDev.${system}}/dist/_api.json"; mkNodeModules = mkNodeModules; }; } ); apps = forEachSystem ( system: let pkgs = pkgsFor system; in { opencode-dev = { type = "app"; meta = { description = "Nix devshell shell for OpenCode"; runtimeInputs = [ pkgs.bun ]; }; program = "${ pkgs.writeShellApplication { name = "opencode-dev"; text = '' exec bun run dev "$@" ''; } }/bin/opencode-dev"; }; } ); }; } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |