mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
GNUnet: Wrap `gnunetd' so that it can dlopen the modules.
svn path=/nixpkgs/trunk/; revision=12801
This commit is contained in:
parent
6f2086ec0e
commit
a31f01e83b
@ -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";
|
||||
|
||||
|
@ -6266,7 +6266,7 @@ let
|
||||
gnunet = import ../applications/networking/p2p/gnunet {
|
||||
inherit fetchurl stdenv libextractor libmicrohttpd libgcrypt
|
||||
gmp curl libtool guile adns sqlite gettext zlib pkgconfig
|
||||
libxml2 ncurses findutils;
|
||||
libxml2 ncurses findutils makeWrapper;
|
||||
inherit (gnome) gtk libglade;
|
||||
gtkSupport = getConfig [ "gnunet" "gtkSupport" ] true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user