forked from memsql/memsql-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
34 lines (33 loc) · 834 Bytes
/
default.nix
File metadata and controls
34 lines (33 loc) · 834 Bytes
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
with import <nixpkgs> {}; {
memsqlPython2Env = stdenv.mkDerivation {
name = "memsql-python-env";
buildInputs = with python27Packages; [
python27Full
python27Packages.virtualenv
python27Packages.twine
mysql55
zlib
openssl
];
shellHook = ''
[ -d venv2 ] || virtualenv venv2
source venv2/bin/activate
pip list --format freeze | grep MySQL-python==1.2.5 >/dev/null || pip install MySQL-python==1.2.5
'';
};
memsqlPython3Env = stdenv.mkDerivation {
name = "memsql-python-env";
buildInputs = with python36Packages; [
python36Full
python36Packages.virtualenv
python36Packages.twine
mysql55
zlib
openssl
];
shellHook = ''
[ -d venv3 ] || virtualenv venv3
source venv3/bin/activate
'';
};
}