summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-12-17 23:10:32 +0100
committerLudovic Courtès <ludo@gnu.org>2016-12-17 23:13:05 +0100
commita32d0c8304a60ad77ecae59aab9cb1c7241f8162 (patch)
treeec1fbf024a03b9b0480110323d002b12e93fc079 /gnu
parent4c9287432824f396d5c614c3b2287f553cd9fb90 (diff)
downloadguix-a32d0c8304a60ad77ecae59aab9cb1c7241f8162.tar.gz
gnu: sane-backends: Remove timestamps from the output.
* gnu/packages/scanner.scm (sane-backends-minimal)[source](modules, snippet):
New fields.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/scanner.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm
index fdad1c4459..7bdbf35f05 100644
--- a/gnu/packages/scanner.scm
+++ b/gnu/packages/scanner.scm
@@ -39,7 +39,14 @@
                    "sane-backends-" version ".tar.gz"))
              (sha256
               (base32
-               "0b3fvhrxl4l82bf3v0j47ypjv6a0k5lqbgknrq1agpmjca6vmmx4"))))
+               "0b3fvhrxl4l82bf3v0j47ypjv6a0k5lqbgknrq1agpmjca6vmmx4"))
+             (modules '((guix build utils)))
+             (snippet
+              ;; Generated HTML files and udev rules normally embed a
+              ;; timestamp.  Work around that to build things reproducibly.
+              '(substitute* "tools/sane-desc.c"
+                 (("asctime \\(localtime \\(&current_time\\)\\)")
+                  "\"1970-01-01\"")))))
     (build-system gnu-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))