1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Merge pull request #14199 from getchoo-contrib/getchoo/toml11-fix

packaging: only override `toml11` when necessary
This commit is contained in:
Sergei Zimmerman 2025-10-09 17:20:35 +00:00 committed by GitHub
commit dfafd8bc38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,12 @@ scope: {
prevAttrs.postInstall; prevAttrs.postInstall;
}); });
toml11 = pkgs.toml11.overrideAttrs rec { # TODO: Remove this when https://github.com/NixOS/nixpkgs/pull/442682 is included in a stable release
toml11 =
if lib.versionAtLeast pkgs.toml11.version "4.4.0" then
pkgs.toml11
else
pkgs.toml11.overrideAttrs rec {
version = "4.4.0"; version = "4.4.0";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "ToruNiina"; owner = "ToruNiina";