1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 01:18:28 +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,44 +1,29 @@
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 {
name = "trezor-firmware-dev";
buildInputs = [
MyPython
SDL2
SDL2_image
autoflake
check
clang-tools
gcc
gcc-arm-embedded
gnumake
graphviz
openssl
pipenv
pkgconfig
protobuf
python2Packages.demjson
scons
valgrind
zlib
];
}
stdenv.mkDerivation {
name = "trezor-firmware-dev";
buildInputs = [
SDL2
SDL2_image
autoflake
check
clang-tools
gcc
gcc-arm-embedded
gnumake
graphviz
libusb1
openssl
pipenv
pkgconfig
protobuf
scons
valgrind
zlib
];
LD_LIBRARY_PATH="${libusb1}/lib";
shellHook = ''
pipenv shell
exit
'';
}