-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredis-desktop-manager.nix
60 lines (40 loc) · 1.01 KB
/
redis-desktop-manager.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
with import <nixpkgs> {};
mkShell rec {
name = "redis-desktop";
qtlib = [
libGL
zlib
grpc
protobuf
openssl
abseil-cpp
c-ares
];
buildInputs = [
pkgs.qt5Full
pkgs.qtcreator
cmake
pkgconfig
jdk
(python3.withPackages(ps: with ps; [ pip urllib3 ]))
gcc gdb llvm clang
libxml2 libxslt
libmysqlclient
] ++ qtlib;
ld = stdenv.lib.makeLibraryPath ([
stdenv.cc.cc.lib fontconfig.lib
] ++ qtlib);
shellHook = ''
export PATH=:"/home/prehonor/.local/bin":$PATH
export LD_LIBRARY_PATH=${ld}:$LD_LIBRARY_PATH
source /home/prehonor/.local/pythonEnvs/foo/bin/activate
export ANDROID_HOME="/gh/prehonor/Android/Sdk"
export MAVEN_OPTS='-Xms300m -Xmx300m'
export JAVA_CPPFLAGS=-I${jdk}/include/
export JAVA_HOME=${jdk.home}
unset http_proxy
unset https_proxy
unset ftp_proxy
unset all_proxy
'';
}