flakes/notebook/sagemath/flake.nix

27 lines
579 B
Nix
Raw Normal View History

2023-09-03 12:21:14 +02:00
{
description = "Sagemath flake";
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; [
sage
];
shellHook = ''
2024-02-15 20:35:27 +01:00
sage --nodotsage -n=jupyterlab --notebook-dir .
2023-09-03 12:21:14 +02:00
'';
};
}
);
}