unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Unaltered Git source
@ 2020-11-19 21:28 Stephen Scheck
  2020-11-19 21:41 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Scheck @ 2020-11-19 21:28 UTC (permalink / raw)
  To: help-guix

Hello,

Is there a way to retrieve the unaltered source of a Git project in a
`(package ...)` definition? I'm using `%build-inputs` to retrieve the
source, but this is a directory in /gnu/store, and all of the file
permissions are changed to read-only (0400), which unfortunately causes
problems with the project's build.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unaltered Git source
  2020-11-19 21:28 Unaltered Git source Stephen Scheck
@ 2020-11-19 21:41 ` Tobias Geerinckx-Rice
  2020-11-19 22:09   ` John Soo
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-11-19 21:41 UTC (permalink / raw)
  To: Stephen Scheck; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

Stephen,

Stephen Scheck 写道:
> Is there a way to retrieve the unaltered source of a Git project 
> in a
> `(package ...)` definition? I'm using `%build-inputs` to 
> retrieve the
> source, but this is a directory in /gnu/store, and all of the 
> file
> permissions are changed to read-only (0400), which unfortunately 
> causes
> problems with the project's build.

Try adding a phase like this[0] one.  It's usually sufficient.

Kind regards,

T G-R

[0]: 
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/xml.scm#n2022

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unaltered Git source
  2020-11-19 21:41 ` Tobias Geerinckx-Rice
@ 2020-11-19 22:09   ` John Soo
  0 siblings, 0 replies; 3+ messages in thread
From: John Soo @ 2020-11-19 22:09 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: Help-Guix, Stephen Scheck

     Hello Stephen, 

 
You may also use make-file-writable to change permissions as you need.  
 

 
HTH,
 

 
John
     

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-19 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 21:28 Unaltered Git source Stephen Scheck
2020-11-19 21:41 ` Tobias Geerinckx-Rice
2020-11-19 22:09   ` John Soo

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git