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.
[-- 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 --]
Hello Stephen, You may also use make-file-writable to change permissions as you need. HTH, John