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>
32 lines
660 B
Nix
32 lines
660 B
Nix
{
|
||
openssl,
|
||
rustPlatform,
|
||
pkg-config,
|
||
lib,
|
||
...
|
||
}:
|
||
rustPlatform.buildRustPackage (finalAttrs: {
|
||
env = {
|
||
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig:$PKG_CONFIG_PATH";
|
||
};
|
||
pname = "codex-rs";
|
||
version = "0.1.0";
|
||
cargoLock.lockFile = ./Cargo.lock;
|
||
doCheck = false;
|
||
src = ./.;
|
||
nativeBuildInputs = [
|
||
pkg-config
|
||
openssl
|
||
];
|
||
|
||
cargoLock.outputHashes = {
|
||
"ratatui-0.29.0" = "sha256-HBvT5c8GsiCxMffNjJGLmHnvG77A6cqEL+1ARurBXho=";
|
||
};
|
||
|
||
meta = with lib; {
|
||
description = "OpenAI Codex command‑line interface rust implementation";
|
||
license = licenses.asl20;
|
||
homepage = "https://github.com/openai/codex";
|
||
};
|
||
})
|