nixpkgs-gnunet/README.md

39 lines
1.0 KiB
Markdown
Raw Normal View History

2018-11-14 18:21:22 +01:00
# Nixpkgs overlay with GNUnet-related packages
2018-11-14 18:54:00 +01:00
This repository contains experimental packages related to [GNUnet](https://gnunet.org) for the [Nix package manager](https://nixos.org/nix). There exists a GNUnet package in the official nixpkgs repository but as GNUnet is still under heavy development, it is recommended to use a fairly recent version from the master branch of GNUnet's git repository.
2018-11-14 18:02:43 +01:00
2018-11-14 18:54:00 +01:00
Currently the overlay provides these packages:
- GNUnet itself
- libgnurl
## Installation
2018-11-14 18:02:43 +01:00
We can install the overlay into the user environment like this:
```shell
$ ln -s ~/.config/nixpkgs/overlays/gnunet-overlay.nix gnunet-overlay
```
Now we can install the packages using
```shell
$ nix-env -f '<nixpkgs>' -iA gnunet
```
To use the packages from the overlay system-wide (on NixOS) we can add this to our ``/etc/nixos/configuration.nix``:
```
{ config, pkgs, ... }:
{
...
nixpkgs.overlays = [
(import (fetchGit https://ulrich.earth/code/nixpkgs-gnunet))
];
environment.systemPackages = with pkgs; [
...
gnunet
];
...
}
```