Compare commits

..

7 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
6 changed files with 64 additions and 39 deletions

7
.gitignore vendored
View File

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

View File

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

3
cleanup.sh Normal file
View File

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

View File

@@ -102,4 +102,5 @@ cd ${BASE}
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

@@ -1,33 +1,45 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShell {
packages = with pkgs; [
git
nushellFull
mc
jq
# libtorrent-rasterbar
# python311Packages.libtorrent-rasterbar
python311Full
python311Packages.ipython
python311Packages.ipdb
python311Packages.rq
rsync
rustc
go
duf
gdu
vscode-with-extensions
vscode-extensions.thenuprojectcontributors.vscode-nushell-lang
];
# shellHook = ''
# echo "Nix shell environment is ready."
# hero_shell.sh
# '';
}
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShell {
packages = with pkgs; [
git
nushellFull
mc
jq
# libtorrent-rasterbar
# python311Packages.libtorrent-rasterbar
python311Full
python311Packages.ipython
python311Packages.ipdb
python311Packages.rq
rsync
rustc
go
duf
gdu
boehmgc
libb2
openssl_3_1
libgcc
gcc
# ustream-ssl-mbedtls //doesn't install
# mbedtls
# mbedtls_2
];
# BIN_MC = "${pkgs.mc}/bin";
shellHook = ''
cd $BASE
git status
echo $BASE
$BASE/hero_shell.sh
'';
}

View File

@@ -1,9 +1,13 @@
#!/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
mkdir -p $BASE/code
code $BASE/code
set -e
nix-shell