Hi Andy,

I think that it may be possible to build the package with a little effort. You'll have to emulate the FHS as Maxim suggested. But you'll also have to expose the standard C/C++ libraries (they are currently hidden, see https://issues.guix.gnu.org/63267).
Save the following Scheme code as gcc-unhidden.scm in a directory:

(define-module (gcc-unhidden)
  #:use-module (gnu packages gcc)
  #:use-module (guix packages)
  #:use-module (srfi srfi-1))

(define-public gcc-12-unhidden
  (package
   (inherit gcc-12)
   (properties (alist-delete 'hidden? (package-properties gcc-12)))))

That will make the gcc:lib output available. You can use it in a Guix container along with the necessary tools. This is how I'd do it:
guix shell --load-path=. --container --emulate-fhs --network \
     bash coreutils gcc-toolchain gcc:lib make python

You can now create a Python virtual environment inside the Guix container and continue as usual.
Kind regards,

George

Reply via email to