Compare commits
9 Commits
7fe9b3fda1
...
main
Author | SHA1 | Date | |
---|---|---|---|
511b6351bf
|
|||
2e5c42d60f
|
|||
e570f24b82
|
|||
6dba1ee2bc
|
|||
d0144b72db
|
|||
a01e9c9c19
|
|||
802c661faf
|
|||
02b052d147
|
|||
c7b927736f
|
8
.gitignore
vendored
8
.gitignore
vendored
@@ -3,4 +3,10 @@ deluge_conf
|
|||||||
bin/
|
bin/
|
||||||
code/
|
code/
|
||||||
nuscripts
|
nuscripts
|
||||||
nuscripts/*
|
nuscripts/*
|
||||||
|
.vmodules/
|
||||||
|
done/
|
||||||
|
data/
|
||||||
|
var/
|
||||||
|
tmp/
|
||||||
|
*.sln
|
@@ -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
|
||||||
|
@@ -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
3
cleanup.sh
Normal 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
0
done/nu_done_install_v
Normal 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'
|
74
shell.nix
74
shell.nix
@@ -1,29 +1,45 @@
|
|||||||
let
|
let
|
||||||
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11";
|
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11";
|
||||||
pkgs = import nixpkgs { config = {}; overlays = []; };
|
pkgs = import nixpkgs { config = {}; overlays = []; };
|
||||||
in
|
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
|
python311Packages.ipython
|
||||||
python311Packages.ipython
|
python311Packages.ipdb
|
||||||
python311Packages.ipdb
|
python311Packages.rq
|
||||||
python311Packages.rq
|
rsync
|
||||||
rsync
|
rustc
|
||||||
rustc
|
go
|
||||||
go
|
duf
|
||||||
|
gdu
|
||||||
];
|
boehmgc
|
||||||
# shellHook = ''
|
libb2
|
||||||
# echo "Nix shell environment is ready."
|
openssl_3_1
|
||||||
# hero_shell.sh
|
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
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
|
10
start.sh
10
start.sh
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user