From 0cb69ce56dd288e4e37bec852cbb2a09abda1cff Mon Sep 17 00:00:00 2001 From: Yureka Date: Sun, 5 Oct 2025 12:43:49 +0200 Subject: [PATCH] fasttext: fix build with cmake 4 --- pkgs/by-name/fa/fasttext/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/fa/fasttext/package.nix b/pkgs/by-name/fa/fasttext/package.nix index d8989f98e011..6b6665438beb 100644 --- a/pkgs/by-name/fa/fasttext/package.nix +++ b/pkgs/by-name/fa/fasttext/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchurl, cmake, }: @@ -16,6 +17,15 @@ stdenv.mkDerivation { hash = "sha256-lSIah4T+QqZwCRpeI3mxJ7PZT6pSHBO26rcEFfK8DSk="; }; + patches = [ + # Fix build with CMake 4 + # Upstream repo is archived, so we take a patch from Debian + (fetchurl { + url = "https://salsa.debian.org/science-team/fasttext/-/raw/b2a0e52d302b32b6786b1a8fb9c0b21ca23e2be9/debian/patches/fix-ftbfs-cmake4.patch"; + hash = "sha256-I5w+/4SNyp2FtHGYBWU2Fi76vmJpG4nbgsb0akVddAs="; + }) + ]; + nativeBuildInputs = [ cmake ]; meta = with lib; {