aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/bioinformatics.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-04-25 16:15:06 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-04-25 16:17:49 +0200
commit3a37e3ecd8ae0bcc0e5d00393fa9365d611bcb71 (patch)
tree4cab2a59a7216b02573bb053b7430d241162f4d2 /gnu/packages/bioinformatics.scm
parent0ad4a4d1553b2f77115f9e68509c8e48b7d2074e (diff)
downloadguix-3a37e3ecd8ae0bcc0e5d00393fa9365d611bcb71.tar
guix-3a37e3ecd8ae0bcc0e5d00393fa9365d611bcb71.tar.gz
gnu: lofreq: Set file timestamps to 1980s.
This keeps Python from complaining: "ZIP does not support timestamps before 1980". * gnu/packages/bioinformatics.scm (lofreq)[arguments]: Add build phase 'set-source-file-times-to-1980.
Diffstat (limited to 'gnu/packages/bioinformatics.scm')
-rw-r--r--gnu/packages/bioinformatics.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 84e686c774..dfe82efe22 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -17761,7 +17761,17 @@ genomes known to contain a given k-mer.")
(build-system gnu-build-system)
(arguments
'(#:test-target "bug-tests"
- #:tests? #false)) ; test data are not included
+ #:tests? #false ;test data are not included
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-source-file-times-to-1980
+ (lambda _
+ (let ((circa-1980 (* 10 366 24 60 60)))
+ (for-each (lambda (file)
+ (let ((s (lstat file)))
+ (unless (eq? (stat:type s) 'symlink)
+ (utime file circa-1980 circa-1980))))
+ (find-files "." #:directories? #t))))))))
(inputs
(list htslib python-wrapper zlib))
(native-inputs