-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathdevshell.toml
More file actions
67 lines (55 loc) · 1.48 KB
/
devshell.toml
File metadata and controls
67 lines (55 loc) · 1.48 KB
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
63
64
65
66
67
# This is the name of your environment. It should usually map to the project
# name.
name = "devshell"
# Add packages from nixpkgs here. Use `nix search nixpkgs <term>` to find the
# package that you need.
#
# NOTE: don't forget to put commas between items! :)
packages = [
"go",
"mdsh",
]
# Expose all the dependencies from a package to the environment.
packagesFrom = [
"direnv"
]
# Message Of The Day (MOTD) is displayed when entering the environment with an
# interactive shell. By default it will show the project name.
#
# motd = ""
# Use this section to set environment variables to have in the environment.
#
# NOTE: all the values are escaped
[env]
FOO = 1
# These are bash-specific configurations. The idea is to maybe support other
# shell environments in the future, although it is not the case right now.
[bash]
# Loaded after the environment setup. Useful to set dynamic environment
# variables.
extra = """
export BAR=$FOO
"""
# Only loaded in interactive shells. NOTE: `nix-shell -c "ls"` is interactive
interactive = """
"""
# Declare commands that are available in the environment.
[[commands]]
help = "prints hello"
name = "hello"
command = "echo hello"
[[commands]]
help = "used to format Nix code"
name = "nixpkgs-fmt"
package = "nixpkgs-fmt"
category = "formatters"
[[commands]]
help = "github utility"
name = "hub"
package = "gitAndTools.hub"
category = "utilites"
[[commands]]
help = "golang linter"
name = "golangci-lint"
package = "golangci-lint"
category = "linters"