* A question about 'guix build -f'
@ 2017-07-05 22:21 Feng Shu
2017-07-06 17:11 ` Alex Kost
0 siblings, 1 reply; 3+ messages in thread
From: Feng Shu @ 2017-07-05 22:21 UTC (permalink / raw)
To: guix-devel; +Cc: Feng Shu
I want to build emacs-exwm-x in my guix-git repo with the following command:
guix build emacs-exwm-x -f /home/feng/project/guix/gnu/packages/emacs.scm
But it seem to do nothing, any suggestion?
by the way, pre-inst-env is not suit my need, I just want to hack a
small package -> rebase it to latest git commit -> test build and install -> format patch
The problem is that, when I git pull to get latest git commit, test
build and install need download and build many many package, this is
veeeeeeery sloooooooooow. so I need a way I can code in guix git repo
and use system guix to test build and install.
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: A question about 'guix build -f'
2017-07-05 22:21 A question about 'guix build -f' Feng Shu
@ 2017-07-06 17:11 ` Alex Kost
2017-07-07 1:14 ` tumashu
0 siblings, 1 reply; 3+ messages in thread
From: Alex Kost @ 2017-07-06 17:11 UTC (permalink / raw)
To: Feng Shu; +Cc: guix-devel
Feng Shu (2017-07-06 06:21 +0800) wrote:
> I want to build emacs-exwm-x in my guix-git repo with the following command:
>
> guix build emacs-exwm-x -f /home/feng/project/guix/gnu/packages/emacs.scm
>
> But it seem to do nothing, any suggestion?
As it is mentioned in the manual, when you use "guix build -f", the file
*must* evaluates to the package definition, i.e. it would work if the
last expression in "gnu/packages/emacs.scm" returned a package. But the
last expression is ‘(define-public ...)’ which doesn't return a package
definition.
> by the way, pre-inst-env is not suit my need, I just want to hack a
> small package -> rebase it to latest git commit -> test build and
> install -> format patch
>
> The problem is that, when I git pull to get latest git commit, test
> build and install need download and build many many package, this is
> veeeeeeery sloooooooooow. so I need a way I can code in guix git repo
> and use system guix to test build and install.
Well, if you don't want to pull the latest commit, use whatever commit
you want, modify the package and use "pre-inst-env". I don't really
understand what is the problem.
Actually, if you really want to use "-f" option, just put ‘emacs-exwm-x’
symbol to the end of that file. But this is not the "right way" :-)
--
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-07 1:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-05 22:21 A question about 'guix build -f' Feng Shu
2017-07-06 17:11 ` Alex Kost
2017-07-07 1:14 ` tumashu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.