Skip to content

sonr-io/NUR

Repository files navigation

Sonr NUR Packages

NUR repository for Sonr releases

Build and populate cache Cachix Cache

This repository provides Nix packages for Sonr - a decentralized identity network.

Quickstart with Devbox

The easiest way to get started is using Devbox. Add packages to your project by referencing this repository as a Nix Flake:

# Add snrd (Sonr blockchain daemon)
devbox add github:sonr-io/nur#snrd

# Add hway (Highway network component)
devbox add github:sonr-io/nur#hway

Or add them directly to your devbox.json:

{
  "packages": [
    "github:sonr-io/nur#snrd",
    "github:sonr-io/nur#hway"
  ]
}

Then start your Devbox shell:

devbox shell

Packages

  • snrd: Sonr blockchain daemon - decentralized identity network
  • hway: Highway network component

Installation

Using with Nix Flakes

Add this to your flake.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    nur.url = "github:nix-community/NUR";
  };

  outputs = { self, nixpkgs, nur }: {
    nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        {
          nixpkgs.overlays = [ nur.overlay ];
        }
        # Then use: environment.systemPackages = [ pkgs.nur.repos.sonr-io.snrd ];
      ];
    };
  };
}

Using with Legacy Nix

Add the NUR to your ~/.config/nixpkgs/config.nix:

{
  packageOverrides = pkgs: {
    nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
      inherit pkgs;
    };
  };
}

Then install packages:

nix-env -iA nur.repos.sonr-io.snrd
nix-env -iA nur.repos.sonr-io.hway

Development

Building packages locally

# Build a specific package
nix-build -A snrd

# Build with flakes
nix build .#snrd

Testing

# Test evaluation
nix-env -f . -qa \* --meta --xml \
  --allowed-uris https://static.rust-lang.org \
  --option restrict-eval true \
  --option allow-import-from-derivation true \
  --drv-path --show-trace \
  -I nixpkgs=$(nix-instantiate --find-file nixpkgs) \
  -I $PWD

License

Apache License 2.0

About

Nix User Repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages