summaryrefslogtreecommitdiff
path: root/gnu/packages/cdrom.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-08-07 02:00:01 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2022-08-07 02:00:00 +0200
commitdda3a760ab4b1e8dce9797cecd09fefa9c25cb68 (patch)
treef5d51696e83b33db5f53a2236210c5e54f4e23df /gnu/packages/cdrom.scm
parentced32e953db137fff64bddbc41bacd300d13c79b (diff)
gnu: dvdisaster: Use G-expressions.
* gnu/packages/cdrom.scm (dvdisaster)[arguments]: Rewrite as G-expressions.
Diffstat (limited to 'gnu/packages/cdrom.scm')
-rw-r--r--gnu/packages/cdrom.scm75
1 files changed, 39 insertions, 36 deletions
diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 015b6797ce..6391bd6fec 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -422,42 +422,45 @@ or @command{xorrisofs} to create ISO 9660 images.")
(native-inputs
(list gettext-minimal pkg-config which))
(arguments
- `(;; Parallel builds appear to be unsafe, see
- ;; <http://hydra.gnu.org/build/49331/nixlog/1/raw>.
- #:parallel-build? #f
- #:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (with-directory-excursion "regtest"
- (substitute* "common.bash"
- (("ISODIR=/var/tmp/regtest") "ISODIR=/tmp"))
- (for-each invoke (find-files "." "rs.*\\.bash")))))
- (add-after 'install 'install-desktop
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((datadir (string-append (assoc-ref outputs "out") "/share")))
- (substitute* "contrib/dvdisaster.desktop"
- (("dvdisaster48.png") "dvdisaster.png"))
- (install-file "contrib/dvdisaster.desktop"
- (string-append datadir "/applications"))
- (for-each
- (lambda (png)
- (let* ((size (substring png
- (string-index png char-set:digit)
- (string-rindex png #\.)))
- (icondir (string-append datadir "/icons/"
- size "x" size "/apps")))
- (mkdir-p icondir)
- (copy-file png (string-append icondir "/dvdisaster.png"))))
- (find-files "contrib" "dvdisaster[0-9]*\\.png"))
- (mkdir-p (string-append datadir "/pixmaps"))
- (copy-file "contrib/dvdisaster48.xpm"
- (string-append datadir "/pixmaps/dvdisaster.xpm")))))
- (add-after 'install 'remove-uninstall-script
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out")))
- (delete-file
- (string-append out "/bin/dvdisaster-uninstall.sh"))))))))
+ (list #:parallel-build? #f ; http://hydra.gnu.org/build/49331/nixlog/1/raw
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (with-directory-excursion "regtest"
+ (substitute* "common.bash"
+ (("ISODIR=/var/tmp/regtest") "ISODIR=/tmp"))
+ (for-each invoke (find-files "." "rs.*\\.bash")))))
+ (add-after 'install 'install-desktop
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((datadir (string-append (assoc-ref outputs "out")
+ "/share")))
+ (substitute* "contrib/dvdisaster.desktop"
+ (("dvdisaster48.png") "dvdisaster.png"))
+ (install-file "contrib/dvdisaster.desktop"
+ (string-append datadir "/applications"))
+ (for-each
+ (lambda (png)
+ (let* ((size (substring
+ png
+ (string-index png char-set:digit)
+ (string-rindex png #\.)))
+ (icondir (string-append datadir "/icons/"
+ size "x" size "/apps")))
+ (mkdir-p icondir)
+ (copy-file png
+ (string-append icondir
+ "/dvdisaster.png"))))
+ (find-files "contrib" "dvdisaster[0-9]*\\.png"))
+ (mkdir-p (string-append datadir "/pixmaps"))
+ (copy-file "contrib/dvdisaster48.xpm"
+ (string-append datadir
+ "/pixmaps/dvdisaster.xpm")))))
+ (add-after 'install 'remove-uninstall-script
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (delete-file
+ (string-append out "/bin/dvdisaster-uninstall.sh"))))))))
(home-page "https://dvdisaster.jcea.es/")
(synopsis "Error correcting codes for optical media images")
(description "Optical media (CD,DVD,BD) keep their data only for a