-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
62 lines (58 loc) · 2.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {self, nixpkgs, ... }@inp:
let
l = nixpkgs.lib // builtins;
supportedSystems = [ "x86_64-linux" "aarch64-darwin" ];
forAllSystems = f: l.genAttrs supportedSystems
(system: f system (import nixpkgs {
inherit system;
config.allowUnfree=true;
config.cudaSupport=true;
config.cudaCapabilities = [ "8.6" ];
}));
in
{
# enter this python environment by executing `nix shell .`
devShell = forAllSystems (system: pkgs:
let
kt-legacy = pkgs.python3.pkgs.buildPythonPackage rec {
pname = "kt-legacy";
version = "1.0.4";
src = pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-qUES5CpQ58w6rTHzKHqjhMI1VeoUMsVbWCOFLgnnBs8=";
};
nativeBuildInputs = with pkgs.python3Packages; [];
doCheck=false;
meta = {
homepage = "https://keras-team.github.io/keras-tuner";
description = "hyperparameter tuning for TensorFlow/Keras";
};
};
keras-tuner = pkgs.python3.pkgs.buildPythonPackage rec {
pname = "keras-tuner";
version = "1.1.3";
src = pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-KW7bTo/buFY8AUUnPqlPuIiZQoQaH87xORrglFVHfXA=";
};
propagatedBuildInputs = with pkgs.python3Packages; [tensorflow-tensorboard packaging numpy requests ipython kt-legacy scipy];
doCheck=false;
meta = {
homepage = "https://keras-team.github.io/keras-tuner";
description = "hyperparameter tuning for TensorFlow/Keras";
};
};
python = pkgs.python3.withPackages (p: with p;[numpy
matplotlib tensorflow tqdm keras keras-tuner]);
in pkgs.mkShell {
buildInputs = [
python
];
}
);
};
}