-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
53 lines (52 loc) · 885 Bytes
/
shell.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
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
go
gotools
gopls
go-outline
gopls
gopkgs
godef
golint
delve
pkg-config
clang
gcc
glib
cairo
pango
gdk-pixbuf
atk
ffmpeg
# linux
wayland
wayland-protocols
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
xorg.libXinerama
xorg.libXxf86vm
libxkbcommon
libGL
mesa
# windows
];
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [
pkgs.wayland
pkgs.libGL
pkgs.xorg.libX11
pkgs.xorg.libXcursor
pkgs.xorg.libXi
pkgs.xorg.libXrandr
pkgs.xorg.libXinerama
pkgs.xorg.libXxf86vm
pkgs.libxkbcommon
]}:$LD_LIBRARY_PATH
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export CGO_ENABLED=1
'';
}