nixpkgs-gnunet/README.md

1.0 KiB

Nixpkgs overlay with GNUnet-related packages

This repository contains experimental packages related to GNUnet for the Nix package manager. 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:

$ ln -s ~/.config/nixpkgs/overlays/gnunet-overlay.nix gnunet-overlay

Now we can install the packages using

$ 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
  ];
  ...
}