Created
October 8, 2022 23:58
-
-
Save liquuid/8d384e859790fd11105e786c298e8934 to your computer and use it in GitHub Desktop.
shell.nix for python environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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