guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: vlc: Do not capture the build time.


From: Ludovic Courtès
Subject: 03/03: gnu: vlc: Do not capture the build time.
Date: Mon, 18 Apr 2016 10:09:02 +0000

civodul pushed a commit to branch master
in repository guix.

commit 4ef2721b52c4929aac15db4f8b39702cd37955a1
Author: Ludovic Courtès <address@hidden>
Date:   Mon Apr 18 12:08:31 2016 +0200

    gnu: vlc: Do not capture the build time.
    
    * gnu/packages/video.scm (vlc)[source]: Add 'snippet'.
---
 gnu/packages/video.scm |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 7877961..0e80dd4 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -567,7 +567,14 @@ audio/video codec library.")
                    version "/vlc-" version ".tar.xz"))
              (sha256
               (base32
-               "1jqzrzrpw6932lbkf863xk8cfmn4z2ngbxz7w8ggmh4f6xz9sgal"))))
+               "1jqzrzrpw6932lbkf863xk8cfmn4z2ngbxz7w8ggmh4f6xz9sgal"))
+             (modules '((guix build utils)))
+             (snippet
+              ;; There are two occurrences where __DATE__ and __TIME__ are
+              ;; used to capture the build time and show it to the user.
+              '(substitute* (find-files "." "help\\.c(pp)?$")
+                 (("__DATE__") "\"2016\"")
+                 (("__TIME__") "\"00:00\"")))))
     (build-system gnu-build-system)
     (native-inputs
      `(("git" ,git) ; needed for a test



reply via email to

[Prev in Thread] Current Thread [Next in Thread]