blob: 694fd095d5fc6b79d2d1b61dc271ad660b3d190f (
plain)
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
|
# setup dev environment using direnv
#
if ! has nix_direnv_version || ! nix_direnv_version 1.5.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.5.1/direnvrc" "sha256-p4CDMJjuBmEh9pkn2aoJrZqr0DlPZHPU7eXOSDzzcuo="
fi
#
# watch some files that effect the dev environment
# watch_file shell.nix
# watch_file default.nix
# watch_file Biz/Bild.nix
# watch_file Biz/Bild.hs
# if direnv doesn't detect changes to the nix environment, just touch .envrc and
# it will refresh
use nix
#
export CODEROOT=$PWD
#
# scripts for editing go here
PATH_add $CODEROOT/Biz/Ide
#
# executable bild outputs go here
PATH_add $CODEROOT/_/bin
#
# library/linkable bild outputs go here
export LTDL_LIBRARY_PATH=$CODEROOT/_/lib
#
# Biz/Dragons.hs:
export GITHUB_CLIENT_ID=aa575dc96263bc99556d
export GITHUB_CLIENT_STATE=$(cat /proc/sys/kernel/random/uuid)
export STRIPE_PUBKEY=pk_test_51I3jv1IC3f10BNLClrBmNr485mWSzQkITvjO0MmSeFn4chFqmODJaHcI7IiN1sqSJYusmRhuPzeGTbCrl8dMsSQP00JXUmlVFC
#
# run lorri if its available
if type lorri &>/dev/null
then
eval "$(lorri direnv)"
fi
#
# configure git hooks
git config --local core.hooksPath "$CODEROOT/Biz/Ide/hooks"
#
# load local settings
. ./.envrc.local
##
tips.sh
|