Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For Nix package manager users (or NixOS users), the new `shell.nix` script plops you into an environment with all the tools necessary for general Tock development: * `rustup` * `gcc-arm-embedded` (I think this one can go away when we switch to LLVM tools that ship with Rust) * `tockloader`, which is used for interacting with the dev boards
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
|
||
with builtins; | ||
let | ||
inherit (pkgs) stdenv; | ||
pythonPackages = stdenv.lib.fix' (self: with self; pkgs.python3Packages // | ||
{ | ||
|
||
tockloader = buildPythonPackage rec { | ||
pname = "tockloader"; | ||
version = "1.1.0"; | ||
name = "${pname}-${version}"; | ||
|
||
propagatedBuildInputs = [ argcomplete colorama crcmod pyserial pytoml ]; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "0j15hrz45ay396n94m5i5pca5lrym1qjnj06b2lq9r67ks136333"; | ||
}; | ||
}; | ||
}); | ||
in | ||
with pkgs; | ||
stdenv.mkDerivation { | ||
name = "moz_overlay_shell"; | ||
buildInputs = [ | ||
rustup | ||
gcc-arm-embedded | ||
python3Full | ||
pythonPackages.tockloader | ||
]; | ||
} |