Full swing off of python onto rust

This commit is contained in:
Campbell Alden 2023-07-20 13:35:52 +09:00
parent 64d5dbfea8
commit 2c25aabc6a
6 changed files with 17 additions and 204 deletions

View file

@ -1,20 +1,8 @@
with import <nixpkgs> {};
with pkgs.python3Packages;
stdenv.mkDerivation {
name = "python";
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
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
'';
pkgs.rustc
pkgs.cargo
] ++ [ pkgs.libiconv pkgs.darwin.apple_sdk.frameworks.CoreServices ];
}