Ludovic Courtès 95f2123135
daemon: Add “git-download” built-in builder.
The new builder makes it possible to break cycles that occurs when the
fixed-output derivation for the source of a dependency of ‘git’ would
itself depend on ‘git’.

* guix/scripts/perform-download.scm (perform-git-download): New
procedure.
(perform-download): Move fixed-output derivation check to…
(guix-perform-download): … here.  Invoke ‘perform-download’ or
‘perform-git-download’ depending on what ‘derivation-builder’ returns.
* nix/libstore/builtins.cc (builtins): Add “git-download”.
* tests/derivations.scm ("built-in-builders"): Update.
("'git-download' built-in builder")
("'git-download' built-in builder, invalid hash")
("'git-download' built-in builder, invalid commit")
("'git-download' built-in builder, not found"): New tests.
2023-09-26 17:36:58 +02:00
..
2020-07-11 12:33:01 +02:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-05-31 22:45:35 +02:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-06-08 22:06:00 +02:00
2022-08-08 11:22:31 +02:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2020-12-01 11:34:10 +01:00