diff --git a/pkgs/applications/graphics/mypaint/default.nix b/pkgs/applications/graphics/mypaint/default.nix index 7b83bdec8c6b..b93b4794db81 100644 --- a/pkgs/applications/graphics/mypaint/default.nix +++ b/pkgs/applications/graphics/mypaint/default.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, fetchpatch , gtk3 , gettext , json_c @@ -31,6 +32,15 @@ in buildPythonApplication rec { fetchSubmodules = true; }; + patches = [ + # Fix build due to setuptools issue. + # https://github.com/mypaint/mypaint/pull/1183 + (fetchpatch { + url = "https://github.com/mypaint/mypaint/commit/423950bec96d6057eac70442de577364d784a847.patch"; + sha256 = "OxJJOi20bFMRibL59zx6svtMrkgeMYyEvbdSXbZHqpc="; + }) + ]; + nativeBuildInputs = [ gettext pkg-config