[Go to site: main page, start]

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Install using Nix

Available on nixpkgs

Packaged for Nixpkgs

Nix is a package manager available for Linux, macOS and Windows (through WSL2)

Requirements

  1. Install Nix

  2. Check the installation with this command :

    nix --version
    

    If it has been well settled, it should output something like this :

    nix (Nix) 2.22.3
    

    Else if it has been badly settled, it should output something like this :

    nix: command not found
    

Install from Nixpkgs

The package is available on nixpkgs

nix-shell --packages git-gamble

Check the installation

Check if all have been well settled :

git gamble --version

If it has been well settled , it should output this :

git-gamble 2.14.6

Else if it has been badly settled , it should output this :

git : 'gamble' is not a git command. See 'git --help'.

Install from source

Note: the latest version, not yet released, is also available

Use without installing :

export NIX_CONFIG="extra-experimental-features = flakes nix-command"
nix run gitlab:pinage404/git-gamble -- --help

To install it at project level with flake.nix, see example

export NIX_CONFIG="extra-experimental-features = flakes nix-command"
nix flake init --template gitlab:pinage404/git-gamble

DirEnv

To automate the setup of the environment it’s recommended to install DirEnv

Then run this command :

direnv allow

Cachix

To avoid rebuilding from scratch, Cachix can be used

cachix use git-gamble

Update

export NIX_CONFIG="extra-experimental-features = flakes nix-command"
nix flake update