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