Created
January 21, 2020 19:53
-
-
Save zimbatm/5bde7e7c27a17fb57a41d2ad0b1754b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "etherbrowser" | |
packages = [ | |
# generic tooling | |
"file", | |
"gitAndTools.git", | |
"gitAndTools.git-crypt", | |
"gnugrep", | |
"goreman", | |
"reflex", | |
# nix development | |
"cachix", | |
"nixpkgs-fmt", | |
# bash development | |
"shellcheck", | |
# go development | |
"go", | |
"gopls", | |
"golang-tools", | |
"go-outline", | |
"capnproto", | |
"protobuf3_10", | |
"jq", | |
# node development | |
"nodejs", | |
"autoconf", | |
"automake", | |
"gettext", | |
"gnum4", | |
"gnused", | |
"libtool", | |
"nasm", | |
"pkgconfig", | |
"zlib", | |
# terraform development | |
"my-terraform", | |
"tflint", | |
"terraform-lsp", | |
] | |
profile = ''' | |
repo_root=$(git rev-parse --show-toplevel) | |
export PATH=$repo_root/bin:$repo_root/build/env/bin:$PATH | |
export NIX_PATH=nixpkgs=$repo_root/nix | |
# load the secrets if available | |
if file "$repo_root/secrets.sh" | grep ASCII &>/dev/null ; then | |
source "$repo_root/secrets.sh" | |
else | |
echo "ERROR: use git-crypt unlock to load the secrets" >&2 | |
fi | |
''' | |
interactive = ''' | |
PS1='\[\033[0;32;40m\][etherbrowser${PWD##$repo_root}]$\[\033[0m\] ' | |
''' | |
[env] | |
# go settings | |
GO111MODULE = "on" | |
CGO_ENABLED = "0" | |
# unset GOPATH and GOROOT | |
GOPATH = false | |
GOROOT = false | |
# terraform cloud without the remote execution part | |
TF_FORCE_LOCAL_BACKEND = "1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment