about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-09-04 20:24:03 +0000
committerLudovic Courtès <ludo@gnu.org>2008-09-04 20:24:03 +0000
commita31f01e83bf61d28cda68d030bf334e027fb93ee (patch)
tree1905ddd3c2ce5f197e593f8a612b61efdfbacafc /pkgs/applications/networking/p2p
parent6f2086ec0e28c69ab2c48323b3c1da1f1ad5186d (diff)
downloadnixlib-a31f01e83bf61d28cda68d030bf334e027fb93ee.tar
nixlib-a31f01e83bf61d28cda68d030bf334e027fb93ee.tar.gz
nixlib-a31f01e83bf61d28cda68d030bf334e027fb93ee.tar.bz2
nixlib-a31f01e83bf61d28cda68d030bf334e027fb93ee.tar.lz
nixlib-a31f01e83bf61d28cda68d030bf334e027fb93ee.tar.xz
nixlib-a31f01e83bf61d28cda68d030bf334e027fb93ee.tar.zst
nixlib-a31f01e83bf61d28cda68d030bf334e027fb93ee.zip
GNUnet: Wrap `gnunetd' so that it can dlopen the modules.
svn path=/nixpkgs/trunk/; revision=12801
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r--pkgs/applications/networking/p2p/gnunet/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/networking/p2p/gnunet/default.nix b/pkgs/applications/networking/p2p/gnunet/default.nix
index 7867db761fbf..1abf982f9a3a 100644
--- a/pkgs/applications/networking/p2p/gnunet/default.nix
+++ b/pkgs/applications/networking/p2p/gnunet/default.nix
@@ -1,7 +1,8 @@
 { stdenv, fetchurl, libextractor, libmicrohttpd, libgcrypt
 , zlib, gmp, curl, libtool, guile, adns, sqlite, pkgconfig
 , libxml2, ncurses, gettext, findutils
-, gtkSupport ? false, gtk ? null, libglade ? null }:
+, gtkSupport ? false, gtk ? null, libglade ? null
+, makeWrapper }:
 
 assert gtkSupport -> (gtk != null) && (libglade != null);
 
@@ -23,6 +24,7 @@ in
       libextractor libmicrohttpd libgcrypt gmp curl libtool
       zlib guile adns sqlite libxml2 ncurses
       pkgconfig gettext findutils
+      makeWrapper
     ] ++ (if gtkSupport then [ gtk libglade ] else []);
 
     patches = [
@@ -49,6 +51,12 @@ in
 
     doCheck = false;
 
+    # Help programs find the numerous modules that sit under `$out/lib/GNUnet'.
+    postInstall = ''
+      wrapProgram "$out/bin/gnunetd" \
+        --prefix LTDL_LIBRARY_PATH ":" "$out/lib/GNUnet"
+    '';
+
     meta = {
       description = "GNUnet, GNU's decentralized anonymous and censorship-resistant P2P framework";