1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

nix: consolidate various shell.nix files into one

This commit is contained in:
Pavol Rusnak 2019-04-18 00:26:04 +02:00
parent e78a917502
commit e7592a4c04
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 39 additions and 33 deletions

View File

@ -1,9 +0,0 @@
with import <nixpkgs> {};
let
myPython = python3.withPackages(p: [p.click p.graphviz p.trezor p.ed25519 p.pillow]) ;
in
stdenv.mkDerivation {
name = "trezor-common-dev";
buildInputs = [ myPython python2Packages.demjson graphviz protobuf ];
}

View File

@ -1,9 +0,0 @@
with import <nixpkgs> {};
let
myPython = python3.withPackages(ps: [ps.trezor ps.pytest ps.flake8 ps.isort ps.black ps.Mako ps.munch ps.Pyro4 ps.pillow]);
in
stdenv.mkDerivation {
name = "trezor-core-dev";
buildInputs = [ myPython protobuf scons gnumake gcc gcc-arm-embedded pkgconfig SDL2 SDL2_image autoflake clang-tools ];
}

View File

@ -1,6 +0,0 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "trezor-crypto-dev";
buildInputs = [ gnumake gcc pkgconfig openssl check valgrind clang-tools ];
}

View File

@ -1,9 +0,0 @@
with import <nixpkgs> {};
let
myPython = python3.withPackages(p: [p.pytest p.black p.isort p.flake8 p.requests p.mnemonic p.construct p.pyblake2 p.mock p.ecdsa p.click p.libusb1 p.protobuf p.typing-extensions]);
in
stdenv.mkDerivation {
name = "python-trezor-dev";
buildInputs = [ myPython autoflake protobuf ];
}

39
shell.nix Normal file
View File

@ -0,0 +1,39 @@
with import <nixpkgs> {};
let
MyPython = python3.withPackages(ps: [
ps.Mako
ps.Pyro4
ps.black
ps.ed25519
ps.flake8
ps.graphviz
ps.isort
ps.mock
ps.munch
ps.pillow
ps.pytest
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
pkgconfig
protobuf
python2Packages.demjson
scons
valgrind
];
}