NUR repository for Sonr releases
This repository provides Nix packages for Sonr - a decentralized identity network.
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#hwayOr 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- snrd: Sonr blockchain daemon - decentralized identity network
- hway: Highway network component
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 ];
];
};
};
}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# Build a specific package
nix-build -A snrd
# Build with flakes
nix build .#snrd# 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 $PWDApache License 2.0