diff options
| author | Alexander Bantyev <balsoft@balsoft.ru> | 2025-09-23 21:29:49 +0400 |
|---|---|---|
| committer | Silvan Mosberger <silvan.mosberger@moduscreate.com> | 2025-09-29 23:46:44 +0200 |
| commit | 27a36aeb9cbb1bbd6c1df76a5c8f19039cc4247a (patch) | |
| tree | ef463cd358fdd1f66945447cef66726ddf104ea0 /pkgs/development/python-modules/python-sql | |
| parent | 9e5afcd5d27ad2257d19266a4d64e95736e3f110 (diff) | |
fetchurl: fix hashedMirrors with downloadToTemp
fetchurl supports postFetch, which must not run when fetching from
hashedMirrors, because they provide pre-built derivation outputs.
fetchurl also supports downloadToTemp, which modifies behavior relating
to postFetch.
Before this commit, a call like
fetchurl {
url = "...";
downloadToTemp = true;
postFetch = ''
mv "$downloadedFile" "$out"
'';
}
would work in normal scenarios, but fail when fetching from
hashedMirrors, due to how internally downloadToTemp was not tied to
postFetch as closely as it should've been. This resulted in an error
like
builder [...] failed to produce output path
This commit fixes this, making hashedMirror fetching work even for
derivations that have downloadToTemp enabled.
Co-Authored-By: Silvan Mosberger <silvan.mosberger@tweag.io>
Diffstat (limited to 'pkgs/development/python-modules/python-sql')
0 files changed, 0 insertions, 0 deletions
