docs(sage): Add how to run

This commit is contained in:
Tibo De Peuter 2024-12-28 17:59:33 +01:00
parent b3f64edc8c
commit 75e0ad6954
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -1,5 +1,15 @@
{
description = "Sagemath flake";
description = ''
Sagemath flake
You'll want to run the flake with the following command:
$ sage --nodotsage -n=jupyterlab --notebook-dir /path/to/notebooks
For example:
$ sage --nodotsage -n=jupyterlab --notebook-dir .
'';
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
@ -14,12 +24,8 @@
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
sage
sageWithDoc
];
shellHook = ''
sage --nodotsage -n=jupyterlab --notebook-dir .
'';
};
}
);