[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling guix is too slow?
From: |
Alex Vong |
Subject: |
Re: compiling guix is too slow? |
Date: |
Thu, 29 Jun 2017 12:28:03 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
"Feng Shu" <address@hidden> writes:
> Now I have found that 'guix pull' is too slow,
> I need 3 hours to compile guix, is it possible to speed it ?
Maybe you can try building from git instead? I used to run
'$ guix pull && guix package --upgrade', but it gets slower as the
number of packages of guix increases. So now I use
'$ git pull && make -j`nproc` && ./pre-inst-env guix package --upgrade'.
You can read the manual[0] for more info.
If you use emacs-guix, you need to tell emacs-guix the location of your
git repository as well. I am unware of how others do it. Here is how I
do it:
(require 'guix-autoloads)
(guix-prettify-global-mode)
(setq-default guix-current-profile
(file-chase-links "~/.guix-profile" 1))
(setq-default guix-directory "~/scm/guix/")
(require 'guix-build-config)
(let ((guix-src-dir (expand-file-name "~/scm/guix/")))
(setq-default guix-config-image-directory guix-src-dir)
(setq-default guix-config-guix-scheme-compiled-directory guix-src-dir))
[0]: https://www.gnu.org/software/guix/manual/html_node/Building-from-Git.html
signature.asc
Description: PGP signature