diff mbox

[5/10] opendht: Propagate argon2.

Message ID 87y42wzg8n.fsf@openmailbox.org
State New
Headers show

Commit Message

Lukas Gradl Sept. 13, 2016, 2:27 a.m. UTC
None
diff mbox

Patch

From 5f14484f9d66cc5c40a19de9d58190d0b2b63342 Mon Sep 17 00:00:00 2001
From: Lukas Gradl <lgradl@openmailbox.org>
Date: Tue, 9 Aug 2016 17:00:52 -0500
Subject: [PATCH 05/10] gnu: opendht: Propagate argon2.

* gnu/packages/crypto.scm (opendht)[source]: Add argon2 to pkg-config file.
[inputs]: Remove argon2.
[propagated-inputs]: Add argon2.
---
 gnu/packages/crypto.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 5dad97c..850ee71 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -125,7 +125,11 @@  OpenBSD tool of the same name.")
            (substitute* "src/crypto.cpp"
              (("argon2/argon2.h") "argon2.h"))
            (substitute* "configure.ac"
-             (("src/argon2/Makefile") ""))))
+             (("src/argon2/Makefile") ""))
+           (substitute* "opendht.pc.in"
+             (("Libs: -L..libdir. -lopendht")
+              (string-append "Libs: -L${libdir} -lopendht\n"
+                             "Requires: argon2")))))
        (sha256
         (base32
          "09yvkmbqbym3b5md4n96qc1s9sf2n8ji404hagih45rmsj49599x"))))
@@ -134,8 +138,9 @@  OpenBSD tool of the same name.")
      `(("gnutls" ,gnutls)
        ("nettle" ,nettle)
        ("msgpack" ,msgpack)
-       ("readline" ,readline)
-       ("argon2" ,argon2)))
+       ("readline" ,readline)))
+    (propagated-inputs
+     `(("argon2" ,argon2)))
     (native-inputs
      `(("autoconf" ,autoconf)
        ("pkg-config" ,pkg-config)
-- 
2.9.0