Initial commit

This commit is contained in:
Campbell Alden 2022-06-28 09:53:22 +09:00
commit 71e022be93
4 changed files with 73 additions and 0 deletions

19
shell.nix Normal file
View 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
'';
}