Compare commits
7 Commits
02b052d147
...
main
Author | SHA1 | Date | |
---|---|---|---|
511b6351bf
|
|||
2e5c42d60f
|
|||
e570f24b82
|
|||
6dba1ee2bc
|
|||
d0144b72db
|
|||
a01e9c9c19
|
|||
802c661faf
|
7
.gitignore
vendored
7
.gitignore
vendored
@@ -4,4 +4,9 @@ bin/
|
||||
code/
|
||||
nuscripts
|
||||
nuscripts/*
|
||||
.vmodules/
|
||||
.vmodules/
|
||||
done/
|
||||
data/
|
||||
var/
|
||||
tmp/
|
||||
*.sln
|
@@ -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
3
cleanup.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
nix-env --delete-generations old
|
||||
nix-store --gc
|
||||
# nix-collect-garbage -d
|
@@ -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'
|
78
shell.nix
78
shell.nix
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
|
10
start.sh
10
start.sh
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user