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
2023-05-29 14:23:47 +09:00

20 lines
439 B
Nix

with import <nixpkgs> {};
with pkgs.python3Packages;
stdenv.mkDerivation {
name = "python";
buildInputs = [
pip
python310
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
export PIP_DISABLE_PIP_VERSION_CHECK=1
pip install -r requirements.txt > /dev/null
'';
}