mirror of
https://github.com/openai/codex.git
synced 2025-12-03 18:35:00 +00:00
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>
29 lines
626 B
Nix
29 lines
626 B
Nix
{
|
|
description = "Development Nix flake for OpenAI Codex CLI";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
let
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems f;
|
|
in
|
|
{
|
|
packages = forAllSystems (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
codex-rs = pkgs.callPackage ./codex-rs { };
|
|
in
|
|
{
|
|
codex-rs = codex-rs;
|
|
default = codex-rs;
|
|
}
|
|
);
|
|
};
|
|
}
|