Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix codex on macos

+22 -20
+22 -20
overlays/codex.nix
··· 1 1 final: prev: { 2 - codex = 3 - if prev.stdenv.hostPlatform.isDarwin then 4 - prev.codex 5 - else 6 - prev.codex.overrideAttrs ( 7 - finalAttrs: _prevAttrs: { 8 - version = "0.128.0"; 9 - src = prev.fetchFromGitHub { 10 - owner = "openai"; 11 - repo = "codex"; 12 - tag = "rust-v${finalAttrs.version}"; 13 - hash = "sha256-v2W0eslPOPHxHX76+bnkE/f4y+MnQuopeOoAC5X16TA="; 14 - }; 15 - cargoDeps = prev.rustPlatform.fetchCargoVendor { 16 - inherit (finalAttrs) src; 17 - sourceRoot = "${finalAttrs.src.name}/codex-rs"; 18 - hash = "sha256-3NQ4UCfBpANhyoJJatd8m31cEugsd42Ye2BXuzlKC0c="; 19 - }; 20 - } 21 - ); 2 + codex = prev.codex.overrideAttrs ( 3 + finalAttrs: prevAttrs: { 4 + version = "0.128.0"; 5 + src = prev.fetchFromGitHub { 6 + owner = "openai"; 7 + repo = "codex"; 8 + tag = "rust-v${finalAttrs.version}"; 9 + hash = "sha256-v2W0eslPOPHxHX76+bnkE/f4y+MnQuopeOoAC5X16TA="; 10 + }; 11 + cargoDeps = prev.rustPlatform.fetchCargoVendor { 12 + inherit (finalAttrs) src; 13 + sourceRoot = "${finalAttrs.src.name}/codex-rs"; 14 + hash = "sha256-3NQ4UCfBpANhyoJJatd8m31cEugsd42Ye2BXuzlKC0c="; 15 + }; 16 + env = 17 + prevAttrs.env 18 + // prev.lib.optionalAttrs prev.stdenv.hostPlatform.isDarwin { 19 + # Keep the aarch64-darwin text segment within ld64's +/-128MB branch range. 20 + CARGO_PROFILE_RELEASE_OPT_LEVEL = "s"; 21 + }; 22 + } 23 + ); 22 24 }