* bug#64976: guix build: error: invalid character `~' in name
@ 2023-07-31 13:20 nigko
2023-08-04 19:55 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
0 siblings, 1 reply; 2+ messages in thread
From: nigko @ 2023-07-31 13:20 UTC (permalink / raw)
To: 64976
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
Hello,
When running "guix build -f alps.scm" where alps.scm uses url-fetch with
(uri
"https://exa.phys.s.u-tokyo.ac.jp/archive/MateriApps/src/alps_20220304~r7871.orig.tar.gz")
the following error occurs
guix build: error: invalid character `~' in name
'alps_20220304~r7871.orig.tar.gz.drv'
Bug was noted at
repository URL: https://git.savannah.gnu.org/git/guix.git
commit: c173819c8e5235ce02d60b79bd88b10023a7c614
branch: master
[-- Attachment #2: alps.scm --]
[-- Type: text/x-scheme, Size: 1687 bytes --]
(define-module (alps)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system cmake)
;; #:use-module (gnu packages cmake)
#:use-module ((guix licenses)
#:prefix license:)
#:use-module (guix build utils)
#:use-module (guix gexp)
#:use-module (gnu packages boost)
#:use-module (gnu packages algebra)
#:use-module (gnu packages maths)
)
(define-public alps
(package
(name "alps")
(version "7871")
(source (origin
(method url-fetch)
(uri
(string-append
"https://exa.phys.s.u-tokyo.ac.jp/archive/"
"MateriApps/src/alps_20220304~r7871.orig.tar.gz"))
(sha256
(base32
"09klx0samxz9lap2j9q19264bdpydbrfqq1wmwwi9y01cwavkg3l"))))
(build-system cmake-build-system)
(arguments
(list
#:tests? #t
#:configure-flags #~(list "-DALPS_BUILD_PYTHON=OFF")))
(native-inputs (list))
(inputs
(list boost fftw openblas hdf5))
(propagated-inputs (list))
(synopsis "Algorithms and Libraries for Physics Simulations")
(description
"The ALPS project (Algorithms and Libraries for Physics
Simulations) is an open source effort aiming at providing high-end
simulation codes for strongly correlated quantum mechanical systems as
well as C++ libraries for simplifying the development of such
code. ALPS strives to increase software reuse in the physics
community.")
(home-page (string-append
"https://web.archive.org/web/20210508050408/"
"https://alps.comp-phys.org/mediawiki/index.php/Main_Page"))
(license (license:non-copyleft "file://LICENSE"
"See README in the deistribution."))))
alps
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#64976: guix build: error: invalid character `~' in name
2023-07-31 13:20 bug#64976: guix build: error: invalid character `~' in name nigko
@ 2023-08-04 19:55 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2023-08-04 19:55 UTC (permalink / raw)
To: 64976-done
Certain characters are not allowed in store item[0] names. This
restriction was inherited verbatim[1] from Nix.
As such there's no bug here, although you could start a separate
discussion about relaxing these restrictions if you like.
So what to do? url-fetch defaults to the URL's basename as file name,
but you can specify a different one. For example:
(source
(method …)
(uri …)
(file-name (string-append name "-" version ".tar.gz"))
(sha256 …))
Kind regards,
T G-R
Sent from a Web browser. Excuse or enjoy my brevity.
[0]: Top-level file names under /gnu/store.
[1]:
https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/store-api.cc#n58
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-04 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-31 13:20 bug#64976: guix build: error: invalid character `~' in name nigko
2023-08-04 19:55 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).