installation

Packaging status

Arch Linux

nvrs is available as a package in the AUR.
you can install it with your preferred AUR helper, example:

paru -S nvrs

or manually:

git clone https://aur.archlinux.org/nvrs.git
cd nvrs
makepkg -si

Nix

Flakes

There is a flake available.
You can run it directly with:

nix run github:adamperkowski/nvrs

or install it by adding the following to your flake.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    nvrs.url = "github:adamperkowski/nvrs";
  };

  outputs = { self, nixpkgs, nvrs }: {
    nixosConfigurations.example = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [{
        environment.systemPackages = [
          inputs.nvrs.packages.${pkgs.system}.default
        ];
      }];
    };
  };
}

Home Manager

nvrs also provides a Home Manager module.
You can use it in your home.nix like this:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nvrs.url = "github:adamperkowski/nvrs";
  };

  outputs = { self, nixpkgs, home-manager, nvrs }: {
    homeConfigurations."user@hostname" = home-manager.lib.homeManagerConfiguration {
      modules = [
        home-manager.homeManagerModules.default
        nvrs.homeManagerModules.default
        {
          programs.nvrs = {
            enable = true;
            settings = {
              julec = {
                source = "github";
                github = "julelang/julec";
                prefix = "jule";
              };
            };
          };
        }
      ];
    };
  };
}

Cargo

nvrs can be installed via Cargo with:

cargo install nvrs --all-features

note that crates installed using cargo install require manual updating with cargo install --force.

Manual

  1. download the latest binary from GitHub's release page
  2. allow execution
chmod +x nvrs
  1. move the file to a directory in $PATH (using /usr/bin as an example)
sudo mv nvrs /usr/bin/nvrs