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:
parent
78041d261b
commit
552e6c5d62
69
shell.nix
69
shell.nix
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user