first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:52:23 +03:00
commit 880f412e2c
2662 changed files with 866266 additions and 0 deletions

34
nix/devshells/default.nix Normal file
View File

@@ -0,0 +1,34 @@
{pkgs}:
pkgs.mkShellNoCC {
name = "bifrost-nix-dev-shell";
packages = with pkgs; [
go_1_26
gopls
gofumpt
air
delve
go-tools
nodejs_24
];
env = {};
shellHook = ''
CACHE_ROOT="''${XDG_CACHE_HOME:-$HOME/.cache}/bifrost"
mkdir -p "$CACHE_ROOT"
export GOPATH="$CACHE_ROOT/go"
export GOBIN="$GOPATH/bin"
export GOMODCACHE="$GOPATH/pkg/mod"
export GOCACHE="$CACHE_ROOT/gocache"
mkdir -p "$GOBIN" "$GOMODCACHE" "$GOCACHE"
export PATH="$PATH:$GOBIN"
export npm_config_prefix="$CACHE_ROOT/npm-global"
mkdir -p "$npm_config_prefix/bin"
export PATH="$PATH:$npm_config_prefix/bin"
'';
}