This repository has been archived on 2026-04-05. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
things-3-report/shell.nix
2022-06-28 09:53:22 +09:00

19 lines
394 B
Nix

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
'';
}