Compare commits
2 Commits
master
...
2b097045bc
| Author | SHA1 | Date | |
|---|---|---|---|
|
2b097045bc
|
|||
|
a05122c8bc
|
@@ -1,23 +1,14 @@
|
|||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
description = "";
|
||||||
|
|
||||||
outputs =
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
{ self, nixpkgs, ... }:
|
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
devShells."${system}".default =
|
|
||||||
let
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
pkgs.mkShell {
|
|
||||||
packages = with pkgs; [
|
|
||||||
];
|
|
||||||
|
|
||||||
shellHook = "";
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
};
|
flake-utils.lib.eachDefaultSystem
|
||||||
};
|
(system:
|
||||||
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||||
|
{
|
||||||
|
devShell = import ./shell.nix { inherit pkgs; };
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
{
|
mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python3
|
python3
|
||||||
python3Packages.jupyter
|
python3Packages.jupyter
|
||||||
@@ -12,4 +12,10 @@ with pkgs;
|
|||||||
python3Packages.matplotlib
|
python3Packages.matplotlib
|
||||||
python3Packages.seaborn
|
python3Packages.seaborn
|
||||||
];
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
trap "kill 0" EXIT
|
||||||
|
|
||||||
|
jupyter notebook
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user