Compare commits

...

9 Commits

Author SHA1 Message Date
511b6351bf ... 2024-01-13 18:56:37 +03:00
2e5c42d60f .sln ignore 2024-01-13 14:34:53 +00:00
e570f24b82 d 2024-01-13 17:24:47 +03:00
6dba1ee2bc s 2024-01-13 17:18:05 +03:00
d0144b72db yoepie 2024-01-13 16:41:26 +03:00
a01e9c9c19 ... 2024-01-13 15:13:42 +03:00
802c661faf ignore 2024-01-13 15:06:37 +03:00
02b052d147 d 2024-01-13 15:06:00 +03:00
c7b927736f seems to work 2024-01-13 15:05:37 +03:00
8 changed files with 67 additions and 35 deletions

6
.gitignore vendored
View File

@@ -4,3 +4,9 @@ bin/
code/ code/
nuscripts nuscripts
nuscripts/* nuscripts/*
.vmodules/
done/
data/
var/
tmp/
*.sln

View File

@@ -1,6 +1,6 @@
# my crystal development environment # my crystal development environment
- make sure nix is installed - make sure nix & vscode are installed
```bash ```bash
#go to the cloned repo #go to the cloned repo

View File

@@ -6,5 +6,7 @@ clear
export BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" export BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
export PATH=${BASE}/bin:${BASE}/v:${PATH} export PATH=${BASE}/bin:${BASE}/v:${PATH}
export VMODULES=${BASE}/.vmodules
cd ${BASE} cd ${BASE}
bash bash

3
cleanup.sh Normal file
View File

@@ -0,0 +1,3 @@
nix-env --delete-generations old
nix-store --gc
# nix-collect-garbage -d

0
done/nu_done_install_v Normal file
View File

View File

@@ -102,4 +102,5 @@ cd ${BASE}
nuscript_get nuscript_get
nu --config nuscripts/config/config.nu --env-config nuscripts/config/env.nu -e 'source nuscripts/load.nu; $env.PATH = (paths_nix)' nu --config nuscripts/config/config.nu --env-config nuscripts/config/env.nu \
-e 'source nuscripts/load.nu; $env.PATH = (paths_nix); herotools install_crystal; herotools install_hero'

View File

@@ -6,10 +6,9 @@ in
pkgs.mkShell { pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
git git
nushell nushellFull
mc mc
jq jq
# vscode-with-extensions
# libtorrent-rasterbar # libtorrent-rasterbar
# python311Packages.libtorrent-rasterbar # python311Packages.libtorrent-rasterbar
python311Full python311Full
@@ -19,11 +18,28 @@ pkgs.mkShell {
rsync rsync
rustc rustc
go go
duf
gdu
boehmgc
libb2
openssl_3_1
libgcc
gcc
# ustream-ssl-mbedtls //doesn't install
# mbedtls
# mbedtls_2
]; ];
# shellHook = ''
# echo "Nix shell environment is ready." # BIN_MC = "${pkgs.mc}/bin";
# hero_shell.sh
# ''; shellHook = ''
cd $BASE
git status
echo $BASE
$BASE/hero_shell.sh
'';
} }

View File

@@ -1,9 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$MYDIR"
export BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "$BASE"
export NIXPKGS_ALLOW_UNFREE=1 export NIXPKGS_ALLOW_UNFREE=1
mkdir -p $BASE/code
code $BASE/code
set -e
nix-shell nix-shell