diff --git a/pkgs/data/fonts/monoid/default.nix b/pkgs/data/fonts/monoid/default.nix index fab91ae4e20b..f6875a482d08 100644 --- a/pkgs/data/fonts/monoid/default.nix +++ b/pkgs/data/fonts/monoid/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, python39 }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, python3 }: stdenv.mkDerivation { pname = "monoid"; @@ -12,11 +12,19 @@ stdenv.mkDerivation { }; nativeBuildInputs = [ - (python39.withPackages (pp: with pp; [ + (python3.withPackages (pp: with pp; [ fontforge ])) ]; + patches = [ + # port to python 3 + (fetchpatch { + url = "https://salsa.debian.org/fonts-team/fonts-monoid/-/raw/master/debian/patches/0002-fontbuilder.py-Fix-FTBFS-with-non-int-bearing-value.patch"; + hash = "sha256-IG3KXvOFZfi8dhVuKDYo0onl6ruEe24aFHBgSoMKf9c="; + }) + ]; + buildPhase = '' local _d="" local _l=""