From a31f01e83bf61d28cda68d030bf334e027fb93ee Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 4 Sep 2008 20:24:03 +0000 Subject: GNUnet: Wrap `gnunetd' so that it can dlopen the modules. svn path=/nixpkgs/trunk/; revision=12801 --- pkgs/applications/networking/p2p/gnunet/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/networking/p2p') 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"; -- cgit 1.4.1