-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.null-ls_814785_shell.nix
62 lines (61 loc) · 1.14 KB
/
.null-ls_814785_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
54
55
56
57
58
59
60
61
62
{ pkgs ? import <nixpkgs> {} }:
# with import <nixpkgs> {
# crossSystem = {
# config = "x86_64-w64-mingw32";
# };
# };
# let
# # pkgs = (import <nixpkgs>{ crossSystem = {config = "x86_64-w64-mingw32";}; });
# pkgs = import <nixpkgs> {
# localSystem = "x86_64-linux"; # buildPlatform
# crossSystem = "x86_64-w64-mingw32"; # Note the `config` part!
# };
# in
pkgs.mkShell {
buildInputs = with pkgs; [
go
gotools
gopls
go-outline
gopls
gopkgs
godef
golint
delve
pkg-config
clang
pkg-config
glib
cairo
pango
gdk-pixbuf
atk
ffmpeg
# linux
wayland
wayland-protocols
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
xorg.libXinerama
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.libxkbcommon
]}:$LD_LIBRARY_PATH
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export CGO_ENABLED=1
'';
}