File tree Expand file tree Collapse file tree 1 file changed +34
-16
lines changed Expand file tree Collapse file tree 1 file changed +34
-16
lines changed Original file line number Diff line number Diff line change 1- with ( import <nixpkgs> { } ) ;
2-
31let
4- extra_deps = if stdenv . isDarwin then [
5- darwin . apple_sdk . frameworks . Security
6- ] else [ ] ;
7- pkgs = import ( fetchTarball {
8- name = "nixos-21.11" ;
9- url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz" ;
10- # Hash obtained using `nix-prefetch-url --unpack <url>`
11- sha256 = "162dywda2dvfj1248afxc45kcrg83appjd0nmdb541hl7rnncf02" ;
2+ pkgs = import ( fetchTarball {
3+ name = "nixos-25.05" ;
4+ url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/25.05.tar.gz" ;
5+ sha256 = "1915r28xc4znrh2vf4rrjnxldw2imysz819gzhk9qlrkqanmfsxd" ;
126 } ) { } ;
13- rust_channel = nixpkgs . rust-bin . fromRustupToolchainFile ./rust-toolchain ;
7+
8+ pythonWithPryskDeps = pkgs . python3 . withPackages ( ps : with ps ; [
9+ pip
10+ setuptools
11+ ] ) ;
1412in
1513 pkgs . mkShell {
1614 buildInputs = [
2220 pkgs . rustfmt
2321 pkgs . libiconv
2422 pkgs . openssl . dev
25- pkgs . pkgconfig
26- pkgs . python39Packages . cram
27- pkgs . nodejs-17_x
28- ] ++ extra_deps ;
23+ pkgs . pkg-config
24+ pkgs . nodejs
25+ pythonWithPryskDeps
26+ ] ;
2927 RUST_BACKTRACE = 1 ;
28+
29+ shellHook = ''
30+ echo "Welcome to Josh development environment!"
31+ echo "Rust version: $(rustc --version)"
32+ echo "Cargo version: $(cargo --version)"
33+
34+ # Install prysk using pip in a virtual environment
35+ if [ ! -d ".venv" ]; then
36+ echo "Creating Python virtual environment..."
37+ python3 -m venv .venv
38+ fi
39+
40+ source .venv/bin/activate
41+
42+ # Install or upgrade prysk
43+ echo "Installing/updating prysk..."
44+ pip install --upgrade pip
45+ pip install --upgrade prysk
46+
47+ echo "Prysk installed: $(prysk --version 2>/dev/null || echo 'Run prysk --help for usage')"
48+ '' ;
3049 }
31-
You can’t perform that action at this time.
0 commit comments