Install using Nix
Nix is a package manager available for Linux, macOS and Windows (through WSL2)
Requirements
-
Check the installation with this command :
nix --versionIf it has been well settled, it should output something like this :
nix (Nix) 2.22.3Else 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