diff options
author | Brian Leung <[email protected]> | 2019-06-25 20:48:54 +0200 |
---|---|---|
committer | Efraim Flashner <[email protected]> | 2019-08-05 10:22:20 +0300 |
commit | d9340de9031211c220b5b710e64af29e066f26f2 (patch) | |
tree | a233f409fd16723ca8e40d85f7922d4cc4e06b0c /gnu | |
parent | 5ee4d11ff49cb58911f17c4a01cf40b5c47a4c11 (diff) |
gnu: khmer: Make gzip timestamps writable.
* gnu/packages/bioinformatics.scm (khmer)[arguments]: Add custom phase
to make gzip timestamps writable.
Signed-off-by: Efraim Flashner <[email protected]>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/bioinformatics.scm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 89f1ac36ea..bcec9cd279 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2018 Gábor Boskovits <[email protected]> ;;; Copyright © 2018 Mădălin Ionel Patrașcu <[email protected]> ;;; Copyright © 2019 Maxim Cournoyer <[email protected]> +;;; Copyright © 2019 Brian Leung <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -4206,8 +4207,15 @@ command, or queried for specific k-mers with @code{jellyfish query}.") (modify-phases %standard-phases (add-after 'unpack 'set-cc (lambda _ (setenv "CC" "gcc") #t)) - ;; FIXME: This fails with "permission denied". - (delete 'reset-gzip-timestamps)))) + + (add-before 'reset-gzip-timestamps 'make-files-writable + (lambda* (#:key outputs #:allow-other-keys) + ;; Make sure .gz files are writable so that the + ;; 'reset-gzip-timestamps' phase can do its work. + (let ((out (assoc-ref outputs "out"))) + (for-each make-file-writable + (find-files out "\\.gz$")) + #t)))))) (native-inputs `(("python-cython" ,python-cython) ("python-pytest" ,python-pytest) |