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