4 Commits

  • fix(nix): update flake for newer Rust toolchain requirements (#10302)
    ## Summary
    
    - Add rust-overlay input to provide newer Rust versions (rama crates
    require rustc 1.91.0+)
    - Add devShells output with complete development environment
    - Add missing git dependency hashes to codex-rs/default.nix
    
    ## Changes
    
    **flake.nix:**
    - Added `rust-overlay` input to get newer Rust toolchains
    - Updated `packages` output to use `rust-bin.stable.latest.minimal` for
    builds
    - Added `devShells` output with:
      - Rust with `rust-src` and `rust-analyzer` extensions for IDE support
    - Required build dependencies: `pkg-config`, `openssl`, `cmake`,
    `libclang`
      - Environment variables: `PKG_CONFIG_PATH`, `LIBCLANG_PATH`
    
    **codex-rs/default.nix:**
    - Added missing `outputHashes` for git dependencies:
      - `nucleo-0.5.0`, `nucleo-matcher-0.3.1`
      - `runfiles-0.1.0`
      - `tokio-tungstenite-0.28.0`, `tungstenite-0.28.0`
    
    ## Test Plan
    
    - [x] `nix develop` enters shell successfully
    - [x] `nix develop -c rustc --version` shows 1.93.0
    - [x] `nix develop -c cargo build` completes successfully
  • Fix nix build (#4048)
    I dropped the build of the old cli from the flake, where the default.nix
    already seemed to removed in a previous iterations. Then I updated
    flake.nix and codex-rs expression to be able to build again (see
    individual commits for details).
    
    Tested by running the following builds:
    
    
    ```
    $ nix build .#packages.x86_64-linux.codex-rs
    $ nix build .#packages.aarch64-darwin.codex-cli
    ```
    
    ---------
    
    Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
  • restructure flake for codex-rs (#888)
    Right now since the repo is having two different implementations of
    codex, flake was updated to work with both typescript implementation and
    rust implementation
  • feat: add Nix flake for reproducible development environments (#225)
    This PR introduces a Nix flake configuration to enable reproducible
    development environments:
    
    - Adds flake.nix defining a devShell with necessary dependencies.
    - Updates README.md with usage instructions for `nix develop`.
    - Ensures CI compatibility with Nix for consistent builds.