Skip to content

Instantly share code, notes, and snippets.

@liquuid
Created October 8, 2022 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liquuid/8d384e859790fd11105e786c298e8934 to your computer and use it in GitHub Desktop.
Save liquuid/8d384e859790fd11105e786c298e8934 to your computer and use it in GitHub Desktop.
shell.nix for python environment
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = [ pkgs.python39Full pkgs.python39Packages.invoke pkgs.python39Packages.pip pkgs.python39Packages.pipx pkgs.docker-compose pkgs.docker pkgs.vscodium-fhs];
shellHook = ''
pipx install copier
pipx install pre-commit
pipx ensurepath
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment