-
Notifications
You must be signed in to change notification settings - Fork 0
/
onlyofficeEnv.nix
59 lines (55 loc) · 1.61 KB
/
onlyofficeEnv.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
with import <nixpkgs> {};
mkShell rec {
name = "patchCppTools";
buildInputs = [
gnome3.gsettings_desktop_schemas
glib
gtk3
gtk2
cairo
atk
gdk-pixbuf
at-spi2-atk
dbus
dconf
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
qt5.qtbase
qt5.qtdeclarative
qt5.qtsvg
xorg.libX11
xorg.libxcb
xorg.libXi
xorg.libXcursor
xorg.libXdamage
xorg.libXrandr
xorg.libXcomposite
xorg.libXext
xorg.libXfixes
xorg.libXrender
xorg.libXtst
xorg.libXScrnSaver
nss
nspr
alsaLib
fontconfig
libpulseaudio
];
ld = stdenv.lib.makeLibraryPath ([
libudev0-shim glibc curl pulseaudio
] ++ buildInputs);
shellHook = ''
interp="$(cat $NIX_CC/nix-support/dynamic-linker)"
rpath=${ld}
export QT_DEBUG_PLUGINS=1
export XDG_DATA_DIRS=$XDG_DATA_DIRS:"${gtk3}/share/gsettings-schemas/${gtk3.name}" # also right
export QT_PLUGIN_PATH=/home/prehonor/Public/Program/desktopeditors # ONLYOFFICE
export QT_QPA_PLATFORM_PLUGIN_PATH=/home/prehonor/Public/Program/desktopeditors/platforms # ONLYOFFICE
export PATH=$PATH:"/home/prehonor/Public/Program/figma-linux-0.6.2"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ld}
unset http_proxy
unset https_proxy
unset ftp_proxy
# find . -type f -perm -0100 -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \;
'';
}