summaryrefslogtreecommitdiff
path: root/Biz
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-10-07 09:25:58 -0400
committerBen Sima <ben@bsima.me>2023-10-10 13:16:49 -0400
commit6baad9c5fae4a7b8ea07376a0be52443eaa488fa (patch)
treebf8c953f7fa423bffbbcf35f114f68e67bc180c1 /Biz
parent2c5ac71cdddae1ac48f2480069fba0f7f5f61b65 (diff)
Environment fixes on beryllium
Getting beryllium setup with the omnirepo showed that a few things needed fixed.
Diffstat (limited to 'Biz')
-rw-r--r--Biz/Bild.nix7
-rwxr-xr-xBiz/Ide/hooks/pre-commit.bash4
2 files changed, 9 insertions, 2 deletions
diff --git a/Biz/Bild.nix b/Biz/Bild.nix
index 9647983..409a0bc 100644
--- a/Biz/Bild.nix
+++ b/Biz/Bild.nix
@@ -130,15 +130,22 @@ in nixpkgs // { bild = rec {
name = "bizdev";
# this should just be dev tools
buildInputs = with nixpkgs.pkgs; [
+ bat
+ bc
bild
black
ctags
+ fd
figlet
+ fzf
git
gitlint
+ jq
lolcat
nixpkgs.haskell.packages.${constants.ghcCompiler}.fast-tags
ormolu
+ ripgrep
+ tree
wemux
];
shellHook = ''
diff --git a/Biz/Ide/hooks/pre-commit.bash b/Biz/Ide/hooks/pre-commit.bash
index 2b4575c..560eee7 100755
--- a/Biz/Ide/hooks/pre-commit.bash
+++ b/Biz/Ide/hooks/pre-commit.bash
@@ -8,9 +8,9 @@
for ns in ${changed[@]}
do
version=$(${CODEROOT:?}/Biz/Ide/version $ns)
- if (( $version == -1 )); then
+ if [[ $version -eq -1 ]]; then
echo "info: version: $ns: deleted"
- elif (( $version < 1 )); then
+ elif [[ $version -lt 1 ]]; then
echo "fail: version: $ns: $version"
exit 1
else