me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/guix/build
Ludovic Courtès 2f441fc738
download: Honor ‘GUIX_DOWNLOAD_METHODS’ environment variable.
This replaces ‘GUIX_DOWNLOAD_FALLBACK_TEST’ and allows you to test
various download methods, like so:

  GUIX_DOWNLOAD_METHODS=nar guix build guile-gcrypt -S --check
  GUIX_DOWNLOAD_METHODS=disarchive guix build hello -S --check

* guix/build/download.scm (%download-methods): New variable.
(download-method-enabled?): New procedure.
(url-fetch): Define ‘initial-uris’; honor ‘download-method-enabled?’.
Call ‘disarchive-fetch/any’ only when the 'disarchive method is enabled.
* guix/build/git.scm (git-fetch-with-fallback): Honor
‘download-method-enabled?’.
* guix/download.scm (%download-methods): New variable.
(%download-fallback-test): Remove.
(built-in-download): Add #:download-methods parameter and honor it.
(url-fetch*): Pass #:content-addressed-mirrors and #:disarchive-mirrors
unconditionally.
* guix/git-download.scm (git-fetch/in-band*): Pass “git url”
unconditionally.
(git-fetch/built-in): Likewise.  Pass “download-methods”.
* guix/bzr-download.scm (bzr-fetch)[build]: Honor ‘download-method-enabled?’.
Pass ‘GUIX_DOWNLOAD_METHODS’ to #:env-vars.
* guix/cvs-download.scm (cvs-fetch)[build]: Honor ‘download-method-enabled?’.
Pass ‘GUIX_DOWNLOAD_METHODS’ to #:env-vars.
* guix/hg-download.scm (hg-fetch): Honor ‘download-method-enabled?’.
Pass #:env-vars to ‘gexp->derivation’.
* guix/scripts/perform-download.scm (perform-download): Honor
“download-methods” from DRV.  Parameterize ‘%download-methods’ before
calling ‘url-fetch’.
(perform-git-download): Likewise.
* guix/svn-download.scm (svn-fetch): Honor ‘download-method-enabled?’.
Pass ‘GUIX_DOWNLOAD_METHODS’ to #:env-vars.
(svn-multi-fetch): Likewise.

Change-Id: Ia3402e17f0303dfa964bdc761265efe8a1dd69ab
2024-03-09 18:55:50 +01:00
..
maven
agda-build-system.scm build-system: New agda-build-system. 2023-06-04 10:59:34 +02:00
android-ndk-build-system.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
android-repo.scm
ant-build-system.scm guix: ant: Optionally build with java modules. 2023-11-09 19:08:42 +01:00
asdf-build-system.scm guix: Leave some of guix/build/* unchanged. 2023-03-13 15:17:24 +01:00
bournish.scm
bzr.scm bzr-download: Implement nar fallback. 2024-03-09 18:55:49 +01:00
cargo-build-system.scm build: cargo: Add support for x86_64-linux-gnux32. 2024-02-20 13:57:10 +02:00
cargo-utils.scm
chicken-build-system.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
clojure-build-system.scm build-system/clojure: Avoid usage of (guix build sycalls). 2022-11-11 18:09:58 +01:00
clojure-utils.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
cmake-build-system.scm
compile.scm
composer-build-system.scm build-system: Add ‘composer-build-system’. 2023-12-18 23:16:55 +01:00
copy-build-system.scm
cvs.scm
debug-link.scm debug-link: Protect against dangling symlinks. 2023-01-17 16:05:20 +01:00
download-nar.scm download-nar: Distinguish ‘output’ and ‘item’ parameter. 2024-03-09 18:55:50 +01:00
download.scm download: Honor ‘GUIX_DOWNLOAD_METHODS’ environment variable. 2024-03-09 18:55:50 +01:00
dub-build-system.scm build-system/dub: Avoid usage of (guix build syscalls). 2022-11-11 18:09:58 +01:00
dune-build-system.scm guix: dune-build-system: Do not use `test-target' argument. 2023-01-15 15:57:49 +01:00
elm-build-system.scm guix: Leave some of guix/build/* unchanged. 2023-03-13 15:17:24 +01:00
emacs-build-system.scm build-system: emacs: Use native compilation. 2022-09-11 15:46:32 +02:00
emacs-utils.scm build: emacs-utils: Adjust ‘emacs-compile-directory’ for Emacs 29. 2023-09-07 20:25:06 +02:00
font-build-system.scm
git.scm download: Honor ‘GUIX_DOWNLOAD_METHODS’ environment variable. 2024-03-09 18:55:50 +01:00
glib-or-gtk-build-system.scm build/glib-or-gtk: Avoid duplicate entries in gdk-pixbuf loaders cache. 2023-04-14 15:35:36 -04:00
gnu-bootstrap.scm
gnu-build-system.scm build: gnu-build-system: Remove source from native inputs. 2022-12-07 09:47:08 -05:00
gnu-dist.scm build-system/gnu: Remove 'install-license-files' from '%dist-phases'. 2023-03-10 14:49:56 +01:00
go-build-system.scm
graft.scm guix: build: Avoid using magic literals in the code for hash length. 2022-09-02 17:04:46 +02:00
gremlin.scm
guile-build-system.scm build-system/guile: Install .scm files first. 2024-03-02 16:26:29 +01:00
haskell-build-system.scm build: haskell-build-system: Build static executables by default. 2023-02-26 10:26:16 +01:00
hg.scm
java-utils.scm build-system/ant: Avoid usage of (guix build syscalls). 2022-11-11 18:09:58 +01:00
json.scm
julia-build-system.scm
kconfig.scm kconfig: Streamline comment in 'modify-defconfig'. 2022-12-20 21:19:33 -05:00
linux-module-build-system.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
lisp-utils.scm guix: Leave some of guix/build/* unchanged. 2023-03-13 15:17:24 +01:00
make-bootstrap.scm guix: Leave some of guix/build/* unchanged. 2023-03-13 15:17:24 +01:00
maven-build-system.scm
meson-build-system.scm build: meson: Explicitly invoke "meson setup" instead of just "meson". 2023-04-09 12:55:46 -04:00
meson-configuration.scm guix: meson-configuration: Fix boolean assigment. 2023-10-04 14:58:42 +02:00
minetest-build-system.scm build: minetest-build-system: Match name more strictly. 2023-11-11 06:48:59 +01:00
minify-build-system.scm build-system/minify: Use esbuild. 2023-10-06 16:37:16 +02:00
mix-build-system.scm build-system: Add mix-build-system. 2023-12-17 22:22:30 +01:00
node-build-system.scm guix: node-build-system: Delete from peerDependencies too. 2023-06-22 12:54:19 +02:00
ocaml-build-system.scm
pack.scm pack: Move common build code to (guix build pack). 2023-07-18 16:56:06 -04:00
perl-build-system.scm
po.scm po: Do not auto-translate cross-references to other manuals. 2023-04-12 08:29:18 -04:00
profiles.scm profiles: Implicitly set GUIX_EXTENSIONS_PATH. 2022-09-07 11:30:31 +03:00
pyproject-build-system.scm build-system/pyproject: Always run tests verbosely for supported backends. 2022-10-27 21:30:03 +02:00
python-build-system.scm
qt-build-system.scm
qt-utils.scm build: qt-utils: Wrap QML2_IMPORT_PATH with 'prefix' location. 2023-08-02 22:27:43 +08:00
r-build-system.scm
rakudo-build-system.scm gnu: perl6-tap-harness: Update to 0.3.5. 2024-03-04 10:41:57 +02:00
rebar-build-system.scm
renpy-build-system.scm
ruby-build-system.scm
scons-build-system.scm
store-copy.scm
svn.scm svn-download: Do not expand keywords. 2023-06-11 18:13:44 +02:00
syscalls.scm syscalls: ‘processes’ really omits kernel threads. 2024-02-20 10:57:16 +01:00
texlive-build-system.scm guix: texlive-build-system: Add #:link-scripts argument. 2023-07-18 18:15:05 +02:00
tree-sitter-build-system.scm build-system: Add tree-sitter-build-system. 2023-02-12 11:32:20 +04:00
union.scm guix: build: Factor out default collision-resolver. 2022-09-02 17:04:46 +02:00
utils.scm guix: build: Avoid using magic literals in the code for hash length. 2022-09-02 17:04:46 +02:00
vim-build-system.scm build-system: Add vim-build-system. 2023-11-08 12:03:05 +02:00
waf-build-system.scm guix: Leave some of guix/build/* unchanged. 2023-03-13 15:17:24 +01:00
zig-build-system.scm build-system/zig: Add cross-compilation support. 2024-01-07 16:56:00 +01:00