39 lines
1.0 KiB
Markdown
39 lines
1.0 KiB
Markdown
# Nixpkgs overlay with GNUnet-related packages
|
|
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.
|
|
|
|
Currently the overlay provides these packages:
|
|
|
|
- GNUnet itself
|
|
- libgnurl
|
|
|
|
## Installation
|
|
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
|
|
];
|
|
...
|
|
}
|
|
```
|