26 lines
579 B
Nix
26 lines
579 B
Nix
{
|
|
description = "Sagemath flake";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
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; [
|
|
sage
|
|
];
|
|
|
|
shellHook = ''
|
|
sage --nodotsage -n=jupyterlab --notebook-dir .
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|