2022-07-14 03:55:03 -04:00
|
|
|
with import <nixpkgs> { };
|
|
|
|
|
with pkgs.python38Packages;
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
name = "specter-desktop";
|
|
|
|
|
buildInputs = [
|
|
|
|
|
python38Full
|
|
|
|
|
python38Packages.virtualenv
|
|
|
|
|
python38Packages.pip
|
2022-12-12 04:40:13 -05:00
|
|
|
python38Packages.pip-tools
|
2022-07-14 03:55:03 -04:00
|
|
|
libusb1
|
|
|
|
|
];
|
|
|
|
|
shellHook = ''
|
|
|
|
|
cd ..
|
2022-12-12 04:40:13 -05:00
|
|
|
pip-compile --generate-hashes requirements.in > requirements.txt
|
2022-07-14 03:55:03 -04:00
|
|
|
pip3 install virtualenv
|
|
|
|
|
virtualenv --python=python3 .env
|
|
|
|
|
source .env/bin/activate
|
|
|
|
|
pip3 install -r requirements.txt --require-hashes
|
|
|
|
|
pip3 install -e .
|
|
|
|
|
python3 setup.py install
|
|
|
|
|
'';
|
|
|
|
|
}
|