Using nix for cross platform dev
All checks were successful
Docker Deploy / build-and-push (push) Successful in 6m34s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 6m34s
This commit is contained in:
30
shell.nix
Normal file
30
shell.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
nodejs_24
|
||||
nodePackages.pnpm
|
||||
chromium
|
||||
git
|
||||
curl
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "🚀 atridotdad development environment loaded!"
|
||||
echo "Node version: $(node --version)"
|
||||
echo "pnpm version: $(pnpm --version)"
|
||||
echo "Chromium path: ${pkgs.chromium}/bin/chromium"
|
||||
|
||||
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
export PUPPETEER_EXECUTABLE_PATH="${pkgs.chromium}/bin/chromium"
|
||||
|
||||
if [ ! -d "node_modules" ]; then
|
||||
echo "📦 Installing dependencies..."
|
||||
pnpm install
|
||||
fi
|
||||
'';
|
||||
|
||||
# Environment variables
|
||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "true";
|
||||
PUPPETEER_EXECUTABLE_PATH = "${pkgs.chromium}/bin/chromium";
|
||||
}
|
Reference in New Issue
Block a user