1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

nix: modify shell.nix to work with pipenv

This commit is contained in:
Tomas Susanka 2019-09-24 10:18:42 +02:00 committed by Pavol Rusnak
parent 78041d261b
commit 552e6c5d62
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,28 +1,8 @@
with import <nixpkgs> {}; with import <nixpkgs> {};
let
MyPython = python3.withPackages(ps: [
ps.Mako
ps.Pyro4
ps.black
ps.coverage
ps.ed25519
ps.flake8
ps.flaky
ps.graphviz
ps.isort
ps.mock
ps.munch
ps.pillow
ps.pytest
ps.pytest-random-order
ps.trezor
]);
in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "trezor-firmware-dev"; name = "trezor-firmware-dev";
buildInputs = [ buildInputs = [
MyPython
SDL2 SDL2
SDL2_image SDL2_image
autoflake autoflake
@ -32,13 +12,18 @@ in
gcc-arm-embedded gcc-arm-embedded
gnumake gnumake
graphviz graphviz
libusb1
openssl openssl
pipenv pipenv
pkgconfig pkgconfig
protobuf protobuf
python2Packages.demjson
scons scons
valgrind valgrind
zlib zlib
]; ];
LD_LIBRARY_PATH="${libusb1}/lib";
shellHook = ''
pipenv shell
exit
'';
} }