Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.31 KB

installing.md

File metadata and controls

57 lines (43 loc) · 1.31 KB

Installing Gitu

Using Cargo

Run the command (recommended):

cargo install gitu --locked

...or to install from git, run:

cargo install --git https://github.com/altsem/gitu.git --locked

Arch Linux

You can install the gitu package from the official extra repository:

pacman -S gitu

Using Release binaries

gitu is available on Github Releases and should be installed from there.

The latest release is available here.

Download the archive that is appropriate for your platform and extract the binary into your $PATH. A common valid path location is /usr/local/bin.

Using Nix flakes

To build from master on flaked Nix platforms add this repo to your inputs:

inputs = {
  nixpkgs.url = "nixpkgs/nixos-unstable";
  gitu.url = "github:altsem/gitu";
};

Then wherever you install your packages (i.e., home-manager):

{ inputs, pkgs, ... }: {
  home.packages = [ inputs.gitu.packages.${pkgs.system}.default ];
}

You can also use this repo's binary cache to avoid building gitu:

nix.settings = {
  extra-substituters = [ "https://gitu.cachix.org" ];
  extra-trusted-public-keys =
    [ "gitu.cachix.org-1:iUIaNys1l3W1LF/M8OXzaTl7N/OinGOlzdUJUSc+5eY=" ];
}