Merge pull request #328298 from romildo/fix.monoid

monoid: fixes related to fontforge
This commit is contained in:
Sandro 2024-07-21 21:25:45 +02:00 committed by GitHub
commit 6fac6e5a93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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=""