-
Notifications
You must be signed in to change notification settings - Fork 5
/
shell.nix
57 lines (48 loc) · 1.1 KB
/
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
# SPDX-FileCopyrightText: 2023 Siemens AG
#
# SPDX-License-Identifier: Apache-2.0
#
# Author: Michael Adler <[email protected]>
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
nativeBuildInputs = [
(python3.withPackages (ps: with ps; [ pyyaml ]))
hugo
htmltest
nodePackages.sql-formatter
nodePackages.markdown-link-check
nodePackages.prettier
nodePackages.markdownlint-cli
shfmt
go-swagger
golangci-lint
go-tools
go-mockery
reuse
gofumpt
gnumake
goreleaser
zig_0_13
just
git
go
flatbuffers
];
shellHook = ''
export GOFLAGS="-tags=sqlite,mysql,postgres,testing,integration,plugin"
export LUA_PATH="$(pwd)/hugo/filters/?.lua;;"
export PATH="$(pwd):$PATH"
export PGUSER=wfx \
PGPASSWORD=secret\
PGHOST=localhost \
PGPORT=5432 \
PGDATABASE=wfx \
PGSSLMODE=disable
export MYSQL_USER=root \
MYSQL_PASSWORD=root \
MYSQL_ROOT_PASSWORD=root \
MYSQL_DATABASE=wfx \
MYSQL_HOST=localhost
'';
}