Fix NixOS build failure by allowing insecure libsoup-2.74.3 package - #13
Draft
sanchit-lamba with Copilot wants to merge 2 commits into
Draft
Fix NixOS build failure by allowing insecure libsoup-2.74.3 package#13sanchit-lamba with Copilot wants to merge 2 commits into
sanchit-lamba with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: sanchit-lamba <121615638+sanchit-lamba@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] facing build issue and unable to identify the primary package behind error
[root@BlitzWing:/etc/nixos/modules/programs/utilities]# sudo nixos-rebuild switch
warning: Git tree '/etc/nixos' is dirty
building the system configuration...
warning: Git tree...
Fix NixOS build failure by allowing insecure libsoup-2.74.3 package
Aug 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the
nixos-rebuild switchbuild failure caused by libsoup-2.74.3 being marked as insecure due to multiple CVEs.Problem
The system build was failing with the following error:
The error occurred during fontconfig evaluation in the home-manager configuration chain, preventing the entire system from building.
Root Cause
libsoup 2.x has reached end-of-life with numerous unfixed security vulnerabilities. NixOS now marks this package as insecure by default and refuses to evaluate configurations that depend on it. However, some packages in the current configuration still transitively depend on libsoup 2.x rather than the newer libsoup 3.x.
Solution
Added
libsoup-2.74.3to thepermittedInsecurePackageslist in the nixpkgs configuration:This change:
hosts/common.nixto handle all configurationsSecurity Note
This is a temporary measure to unblock system builds. The CVEs listed in the error message are known issues that have been addressed in libsoup 3.x. Users should plan to update or replace packages that depend on libsoup 2.x when libsoup 3.x compatible versions become available in nixpkgs.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.