diff options
Diffstat (limited to 'scripts/nar-herder.in')
-rw-r--r-- | scripts/nar-herder.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in index e62f60f..f278ac2 100644 --- a/scripts/nar-herder.in +++ b/scripts/nar-herder.in @@ -182,6 +182,13 @@ (string->number arg) result))) + (option '("cached-compression-nar-source") #t #f + (lambda (opt name arg result) + (alist-cons 'cached-compression-nar-source + arg + (alist-delete 'cached-compression-nar-source + result)))) + (option '("ttl") #t #f (lambda (opt name arg result) (let ((duration (string->duration arg))) @@ -478,7 +485,8 @@ #f (make-maybe-trigger-creation-of-compressed-nars database - canonical-storage + (or (assq-ref opts 'cached-compression-nar-source) + canonical-storage) enabled-cached-compressions cached-compression-min-uses #:cached-compression-workers |