guix-patches
[Top][All Lists]
Advanced

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

[bug#40677] [PATCH 04/30] gnu: jami: Add a generalized procedure for app


From: Jan Wielkiewicz
Subject: [bug#40677] [PATCH 04/30] gnu: jami: Add a generalized procedure for applying patches made by Savoir-faire linux to Jami dependencies.
Date: Fri, 17 Apr 2020 02:34:07 +0200

---
 gnu/packages/jami.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index 8601ad718d..27f6ff26f5 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -76,6 +76,22 @@
      (base32
       "0kx0y9jxyhgj6id6n3xxpm54i6b8dqyx9vxwkx505jvhlbxd2x7x"))))
 
+(define-public jami-apply-dependency-patches
+  '(lambda* (#:key inputs dep-name patches)
+     (let ((savoir-faire-linux-patches-directory "Savoir-faire Linux patches"))
+       (mkdir-p savoir-faire-linux-patches-directory)
+       (invoke "tar" "-xvf" (assoc-ref inputs "savoir-faire-linux-patches")
+               "-C" savoir-faire-linux-patches-directory
+               "--strip-components=5"
+               (string-append "ring-project/daemon/contrib/src/"
+                              dep-name))
+       (for-each
+        (lambda (file)
+          (invoke "patch" "--force" "-p1" "-i"
+                  (string-append savoir-faire-linux-patches-directory "/"
+                                 file ".patch")))
+        patches))))
+
 (define-public pjproject-jami
   (package
     (inherit pjproject)
-- 
2.26.1






reply via email to

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