2023-09-03 12:21:14 +02:00
|
|
|
{
|
2024-12-28 17:59:33 +01:00
|
|
|
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 .
|
|
|
|
'';
|
2023-09-03 12:21:14 +02:00
|
|
|
|
2024-02-15 20:35:27 +01:00
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-09-03 12:21:14 +02:00
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils}:
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
2024-12-28 17:59:33 +01:00
|
|
|
sageWithDoc
|
2023-09-03 12:21:14 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|