Skip to content

Installation

Nix

If you have Nix installed, you can add this as a package to your shell.nix or system.

shell.nix
{
  pkgs,
  ...
}: let
    inherit (pkgs) callPackage;
in pkgs.mkShell {
    packages = [
        # other packages
        (callPackage scilo.nix {})
    ]
}

Where scilo.nix is the following file.

scilo.nix
{
  fetchFromGitLab,
  rustPlatform,
}:

rustPlatform.buildRustPackage {
  pname = "scilo";
  version = "0.3.0";
  src = fetchFromGitLab {
    owner = "jrhawley";
    repo = "scilo";
    rev = "";
  };
  cargoHash = "sha256-37yLWtYn/j6KIQpwWr+2VevrzDvGIEJgW2LMYYSKkCs=";

  meta = {
    description = "A scientific workspace linter and organization tool.";
    homepage = "https://scilo.jrhawley.ca";
    mainProgram = "scilo";
  };
}

From source

To install from source, you'll need Git and a Rust toolchain installed on your system.

cargo install --git https://gitlab.com/jrhawley/scilo

If you have Nix installed on your system, you can take advantage of the tools automatically installed in the development shell, using nix-shell. The development shell can be loaded automatically if you also have direnv installed.

git clone https://gitlab.com/jrhawley/scilo
cd scilo

# If direnv is installed
direnv allow
# Or if only Nix is installed
nix-shell

# Compile and install from source, as above
cargo install --path .