mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +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> {};
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation {
|
||||||
MyPython = python3.withPackages(ps: [
|
name = "trezor-firmware-dev";
|
||||||
ps.Mako
|
buildInputs = [
|
||||||
ps.Pyro4
|
SDL2
|
||||||
ps.black
|
SDL2_image
|
||||||
ps.coverage
|
autoflake
|
||||||
ps.ed25519
|
check
|
||||||
ps.flake8
|
clang-tools
|
||||||
ps.flaky
|
gcc
|
||||||
ps.graphviz
|
gcc-arm-embedded
|
||||||
ps.isort
|
gnumake
|
||||||
ps.mock
|
graphviz
|
||||||
ps.munch
|
libusb1
|
||||||
ps.pillow
|
openssl
|
||||||
ps.pytest
|
pipenv
|
||||||
ps.pytest-random-order
|
pkgconfig
|
||||||
ps.trezor
|
protobuf
|
||||||
]);
|
scons
|
||||||
in
|
valgrind
|
||||||
stdenv.mkDerivation {
|
zlib
|
||||||
name = "trezor-firmware-dev";
|
];
|
||||||
buildInputs = [
|
LD_LIBRARY_PATH="${libusb1}/lib";
|
||||||
MyPython
|
shellHook = ''
|
||||||
SDL2
|
pipenv shell
|
||||||
SDL2_image
|
exit
|
||||||
autoflake
|
'';
|
||||||
check
|
}
|
||||||
clang-tools
|
|
||||||
gcc
|
|
||||||
gcc-arm-embedded
|
|
||||||
gnumake
|
|
||||||
graphviz
|
|
||||||
openssl
|
|
||||||
pipenv
|
|
||||||
pkgconfig
|
|
||||||
protobuf
|
|
||||||
python2Packages.demjson
|
|
||||||
scons
|
|
||||||
valgrind
|
|
||||||
zlib
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user