Unverified Commit 8e98705b authored by natsukium's avatar natsukium
Browse files

textlint: fix build on aarch64-linux

parent 2b82213a
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildNpmPackage,
  fetchFromGitHub,
  autoconf,
  automake,
  makeWrapper,
  python311,
  runCommand,
  textlint,
  textlint-plugin-latex2e,
@@ -44,9 +46,15 @@ buildNpmPackage rec {

  npmDepsHash = "sha256-FnDKPLhf9OxwRrrBJgejp4X13FGEI317yTgI3tA5cX8=";

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      autoconf
      automake
    ]
    ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
      # File "/build/source/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
      # npm error ModuleNotFoundError: No module named 'distutils'
      python311
    ];

  installPhase = ''