Initial commit
This commit is contained in:
commit
71e022be93
4 changed files with 73 additions and 0 deletions
19
shell.nix
Normal file
19
shell.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
with import <nixpkgs> {};
|
||||
with pkgs.python3Packages;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python";
|
||||
|
||||
buildInputs = [
|
||||
pip
|
||||
python3
|
||||
virtualenv
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
SOURCE_DATE_EPOCH=$(date +%s) # so that we can use python wheels
|
||||
virtualenv --no-setuptools venv > /dev/null
|
||||
export PATH=$PWD/venv/bin:$PATH > /dev/null
|
||||
pip install -r requirements.txt > /dev/null
|
||||
'';
|
||||
}
|
||||
Reference in a new issue