Skip to content

Commit

Permalink
Fix nix shell (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic authored Aug 23, 2024
1 parent b75720a commit 47bcecb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
lint:
python -m flake8 **/*.py
format:
python -m black **/*.py
nix-env:
@nix-shell --command 'source "$$(pipenv --venv)/bin/activate"; return'
21 changes: 17 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
{pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11") {}}:
pkgs.mkShellNoCC {
{pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable") {}}:
pkgs.mkShell {
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";

packages = with pkgs; [
python3
python312
python312Packages.pip
python312Packages.python-magic
playwright
playwright-driver.browsers
docker-compose
pipenv
curl
jq
file
];
}

shellHook = ''
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
'';
}

0 comments on commit 47bcecb

Please sign in to comment.