Files
dev/flake.nix
T
Jörg ThalheimandGitHub 44ceaf085b 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 <[email protected]>
2025-10-17 12:19:08 -07:00

51 lines
1.2 KiB
Nix

{
description = "Development Nix flake for OpenAI Codex CLI";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, flake-utils, rust-overlay, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
pkgsWithRust = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
monorepo-deps = with pkgs; [
# for precommit hook
pnpm
husky
];
code-rs = import ./code-rs {
pkgs = pkgsWithRust;
inherit monorepo-deps;
};
in
{
packages = {
code-rs = code-rs.package;
default = code-rs.package;
};
devShells = {
code-rs = code-rs.devShell;
default = code-rs.devShell;
};
apps = {
code-rs = code-rs.app;
default = code-rs.app;
};
}
);
}