diff --git a/pkgs/by-name/cg/cgt-calc/package.nix b/pkgs/by-name/cg/cgt-calc/package.nix index 700ead59662e..482be86743b2 100644 --- a/pkgs/by-name/cg/cgt-calc/package.nix +++ b/pkgs/by-name/cg/cgt-calc/package.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, + fetchpatch, python3Packages, withTeXLive ? true, texliveSmall, @@ -17,6 +18,15 @@ python3Packages.buildPythonApplication (finalAttrs: { hash = "sha256-KPzADW+n82X08IMfSIl5JyYPm8fxbbowud8sBdUxRgA="; }; + patches = [ + (fetchpatch { + # https://github.com/KapJI/capital-gains-calculator/pull/781 + name = "update uv-build requirement.patch"; + url = "https://github.com/KapJI/capital-gains-calculator/commit/0222eafdcf1911f3e2fd781697dc53311f529f62.patch"; + hash = "sha256-L8jgrdA9t3x8mdaLmAuW6vFhHCLGA+0gQ/8j9EcYKhE="; + }) + ]; + build-system = with python3Packages; [ uv-build ];