diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm
index 7a7ade02f437efe099b6a488d4ade9229972a868..e3f64ef324cb73f77dde92770331114fc134a7e2 100644
--- a/gnu/packages/gnunet.scm
+++ b/gnu/packages/gnunet.scm
@@ -231,7 +231,9 @@ (define-public gnunet
     `(("pkg-config" ,pkg-config)
       ("python" ,python-2)))
    (arguments
-    '(#:parallel-tests? #f
+    '(#:configure-flags
+      (list (string-append "--with-nssdir=" %output "/lib"))
+      #:parallel-tests? #f
       ;; test_gnunet_service_arm fails; reported upstream
       #:tests? #f
       #:phases