From 8e98705b81096aa22321780b13a5b1112b429167 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 18 Aug 2024 23:22:15 +0900 Subject: [PATCH] textlint: fix build on aarch64-linux --- pkgs/by-name/te/textlint/package.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/te/textlint/package.nix b/pkgs/by-name/te/textlint/package.nix index aca6801769ba..3be970698e05 100644 --- a/pkgs/by-name/te/textlint/package.nix +++ b/pkgs/by-name/te/textlint/package.nix @@ -1,10 +1,12 @@ { lib, + stdenv, buildNpmPackage, fetchFromGitHub, autoconf, automake, makeWrapper, + python311, runCommand, textlint, textlint-plugin-latex2e, @@ -44,10 +46,16 @@ buildNpmPackage rec { npmDepsHash = "sha256-FnDKPLhf9OxwRrrBJgejp4X13FGEI317yTgI3tA5cX8="; - nativeBuildInputs = [ - autoconf - automake - ]; + nativeBuildInputs = + [ + autoconf + automake + ] + ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [ + # File "/build/source/node_modules/node-gyp/gyp/gyp_main.py", line 42, in + # npm error ModuleNotFoundError: No module named 'distutils' + python311 + ]; installPhase = '' runHook preInstall