Compare commits
2 Commits
6fbe501f9a
...
1a0194144f
Author | SHA1 | Date |
---|---|---|
coolneng | 1a0194144f | |
coolneng | 09a07624c7 |
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
description = "";
|
||||
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||
{
|
||||
devShell = import ./shell.nix { inherit pkgs; };
|
||||
}
|
||||
);
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
with pkgs;
|
||||
|
||||
mkShell {
|
||||
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc openssl ];
|
||||
NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
|
||||
}
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue