diff mbox

[1/1] gnu: curl: Replace with 7.49.1 [fixes CVE-2016-3739].

Message ID 7e8126c4a72a6a4bcbd1bf3f49984bd9584cd013.1465702340.git.leo@famulari.name
State New
Headers show

Commit Message

Leo Famulari June 12, 2016, 3:38 a.m. UTC
* gnu/packages/curl.scm (curl)[replacement]: New field.
(curl/fixed): New variable.
---
 gnu/packages/curl.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
diff mbox

Patch

diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm
index 222910b..925602e 100644
--- a/gnu/packages/curl.scm
+++ b/gnu/packages/curl.scm
@@ -40,6 +40,7 @@ 
 (define-public curl
   (package
    (name "curl")
+   (replacement curl/fixed)
    (version "7.47.0")
    (source (origin
             (method url-fetch)
@@ -123,3 +124,17 @@  tunneling, and so on.")
    (license (license:non-copyleft "file://COPYING"
                                   "See COPYING in the distribution."))
    (home-page "http://curl.haxx.se/")))
+
+(define curl/fixed
+  (package
+    (inherit curl)
+    (source
+     (let ((name "curl")
+           (version "7.49.1"))
+       (origin
+         (method url-fetch)
+           (uri (string-append "https://curl.haxx.se/download/curl-"
+                               version ".tar.lzma"))
+           (sha256
+            (base32
+             "033w3wyawali0rc5s15ywxpjnf476671m595r49sr4vj07idf3al")))))))