aboutsummaryrefslogtreecommitdiff
path: root/README
blob: c1110b74c8831bbceef4f294477b5c5c785adf6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Guile bindings for GNUnet
—————————————————————————

Work in progress!

To try the stub gnunet-search clone, you must have a working GNUnet
configuration. Edit the file `examples/search.scm` and modify the line

    (define config-file "~/.gnunet/gnunet.conf")

to match your current GNUnet configuration file.

Then, go inside the bindings directory and run `search.scm` as a
script. For instance, to run a search on the keywords "foo" and "bar":

    $ cd guix/gnunet/
    $ examples/search.scm "foo" "bar"

This will start a 5 seconds search on the given keywords. Here’s the
output when exactly one find matches the keyword “foo”:

  gnunet-download -o "foo.txt" gnunet://fs/chk/M976V69FDSQDH74AORDDLB…

You can also check your bindings with the command:

    $ ./run-tests.scm