-
Notifications
You must be signed in to change notification settings - Fork 0
Update inputs #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update inputs #192
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,33 +23,6 @@ | |||||||||||
| pkgsThunderbirdUnwrapped = getPkgs inputs.nixpkgs-thunderbird-unwrapped; | ||||||||||||
| llmAgentsPkgs = inputs.llm-agents.packages.${prev.system}; | ||||||||||||
| pinnedTransmission = pkgsTransmission.transmission_4; | ||||||||||||
| # Temporary Darwin firefox wrapper backport: | ||||||||||||
| # in our pinned nixpkgs revision, wrapper logic copies only *.dylib symlinks. | ||||||||||||
| # Some shared libraries are Mach-O dylibs without that suffix, which leaves them | ||||||||||||
| # symlinked and breaks runtime features (e.g. Crypto API / media codecs). | ||||||||||||
| # Drop this once nixpkgs PR #488112 (or equivalent) is in the pinned input. | ||||||||||||
| patchFirefoxDarwinWrapper = | ||||||||||||
| pkg: | ||||||||||||
| pkg.overrideAttrs (old: { | ||||||||||||
| buildCommand = old.buildCommand + '' | ||||||||||||
| # Backport nixpkgs#488112 with otool-based dylib detection. | ||||||||||||
| cd "$out/Applications/Firefox.app" | ||||||||||||
|
|
||||||||||||
| find . -type l -print0 | while IFS= read -r -d $'\0' file; do | ||||||||||||
| case "$(basename "$file")" in | ||||||||||||
| omni.ja) | ||||||||||||
| ;; | ||||||||||||
| *) | ||||||||||||
| otool -l "$file" 2>/dev/null | grep -q 'LC_ID_DYLIB' || continue | ||||||||||||
| ;; | ||||||||||||
| esac | ||||||||||||
|
|
||||||||||||
| target="$(readlink -f "$file")" | ||||||||||||
| rm "$file" | ||||||||||||
| cp "$target" "$file" | ||||||||||||
| done | ||||||||||||
| ''; | ||||||||||||
| }); | ||||||||||||
| in | ||||||||||||
| { | ||||||||||||
| inherit (llmAgentsPkgs) codex claude-code; | ||||||||||||
|
|
@@ -77,16 +50,11 @@ | |||||||||||
| }); | ||||||||||||
| } | ||||||||||||
| // inputs.nixpkgs.lib.optionalAttrs prev.stdenv.isDarwin { | ||||||||||||
| "firefox-unwrapped" = pkgsFirefoxUnwrapped."firefox-unwrapped"; | ||||||||||||
| "thunderbird-unwrapped" = pkgsThunderbirdUnwrapped."thunderbird-unwrapped"; | ||||||||||||
|
|
||||||||||||
| # Backport until https://github.com/NixOS/nixpkgs/pull/488112 lands in our pinned nixpkgs. | ||||||||||||
| firefox = patchFirefoxDarwinWrapper (prev.wrapFirefox final."firefox-unwrapped" { }); | ||||||||||||
| thunderbird = prev.wrapThunderbird final."thunderbird-unwrapped" { }; | ||||||||||||
| inherit (pkgsFirefoxUnwrapped) firefox-unwrapped; | ||||||||||||
| inherit (pkgsThunderbirdUnwrapped) thunderbird-unwrapped; | ||||||||||||
|
|
||||||||||||
|
||||||||||||
| # Preserve firefox and thunderbird attributes while dropping the wrapped backports. | |
| firefox = prev.firefox; | |
| thunderbird = prev.thunderbird; |
Copilot
AI
Mar 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same parsing issue as above: quartz-wm contains a hyphen and is not a valid identifier for inherit. Quote the attribute name (inherit (pkgsQuartzWm) "quartz-wm" xquartz;) or assign explicitly (quartz-wm = pkgsQuartzWm."quartz-wm";).
| inherit (pkgsQuartzWm) quartz-wm xquartz; | |
| quartz-wm = pkgsQuartzWm."quartz-wm"; | |
| xquartz = pkgsQuartzWm.xquartz; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inheritexpects valid Nix identifiers, but attribute names containing hyphens (e.g.firefox-unwrapped) are not valid identifiers and will fail to parse. Use quoted attribute names (e.g.inherit (pkgsFirefoxUnwrapped) "firefox-unwrapped";) or revert to explicit assignments likefirefox-unwrapped = pkgsFirefoxUnwrapped."firefox-unwrapped";(same for thunderbird).