Skip to content

nc6/cabin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Cabin (CAbal BINary sandbox) is a tool to manage cabal binary sandboxes. It lets you install a binary program from cabal into an individual sandbox, and then load that sandbox's bin directory into your home environment. For example:

cabin install alex
cabin load alex

Would install alex into its own sandbox and link the relevant binaries into your $PATH.

Installation

There are two easy ways to install:

From Hackage

cabal --no-require-sandbox install cabin

will install cabin in your default cabal profile, whence you can run it:

$HOME/.cabal/bin/cabin

You also need to add the cabin binary path to your PATH:

export PATH=$PATH:$HOME/.cabin/bin

And add this line to the relevant .profile file.

From github

wget -O - https://raw.githubusercontent.com/nc6/cabin/master/bootstrap.sh | bash

Should bootstrap the operation and install cabin into its own cabin, which will be loaded for you. Note that if you then call cabin unload cabin, it will no longer be available and you will have to invoke the cabin binary directly from within $HOME/.cabin/cabins/cabin/.cabal-sandbox/bin/cabin.

Releases

No releases published

Packages

No packages published