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