Init commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
let
|
||||
pypkgs = pkgs.python3Packages;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
name = "codrs.ru";
|
||||
|
||||
buildInputs = with pypkgs; [
|
||||
python
|
||||
virtualenv
|
||||
# pkgs.nodejs
|
||||
pkgs.nodePackages.sass
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
if [ ! -d "venv" ]; then
|
||||
python -m venv .venv
|
||||
fi
|
||||
|
||||
source .venv/bin/activate
|
||||
|
||||
if [ -f "requirements.txt" ]; then
|
||||
pip install -r requirements.txt
|
||||
fi
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user