Subject: [bug#57058] [PATCH] gnu: Add python-lief.

From: Mathieu Othacehe <[email-masked]>
Date: Thu, 11 Aug 2022 17:37:14 +0200

Hey,

> * gnu/packages/python-xyz.scm (python-lief): New variable.

This looks fine to me, but compilation takes a long time and appears to
be mono-threaded. I found that nix has the following snippet:

--8<---------------cut here---------------start------------->8---
    substituteInPlace setup.py \
      --replace 'cmake_args = []' "cmake_args = [ \"-DCMAKE_INSTALL_PREFIX=$prefix\" ]"
    ${pyEnv.interpreter} setup.py --sdk build --parallel=$NIX_BUILD_CORES
--8<---------------cut here---------------end--------------->8---

that can maybe allow parallel compilation?

Thanks,

Mathieu