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, ... }:
|
||||||
outputs = { self, nixpkgs, flake-utils }:
|
let
|
||||||
flake-utils.lib.eachDefaultSystem
|
system = "x86_64-linux";
|
||||||
(system:
|
in
|
||||||
let pkgs = nixpkgs.legacyPackages.${system}; 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;
|
with pkgs;
|
||||||
|
|
||||||
mkShell {
|
{
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python3
|
python3
|
||||||
python3Packages.jupyter
|
python3Packages.jupyter
|
||||||
@@ -12,10 +12,4 @@ mkShell {
|
|||||||
python3Packages.matplotlib
|
python3Packages.matplotlib
|
||||||
python3Packages.seaborn
|
python3Packages.seaborn
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
|
||||||
trap "kill 0" EXIT
|
|
||||||
|
|
||||||
jupyter notebook
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user