Browse Source
Merge pull request #2873 from ckoehler/fix/nix-devshell
build: add gcc, gtest to nix shell, fix native test framework
pull/2864/merge
Liam Cottle
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
3 deletions
-
default.nix
-
platformio.ini
|
|
@ -1,10 +1,11 @@ |
|
|
{ pkgs ? import <nixpkgs> {} }: |
|
|
{pkgs ? import <nixpkgs> {}}: let |
|
|
let |
|
|
|
|
|
in |
|
|
in |
|
|
pkgs.mkShell { |
|
|
pkgs.mkShell { |
|
|
buildInputs = [ |
|
|
buildInputs = [ |
|
|
pkgs.platformio |
|
|
pkgs.platformio |
|
|
pkgs.python3 |
|
|
pkgs.python3 |
|
|
|
|
|
pkgs.gcc |
|
|
|
|
|
pkgs.gtest |
|
|
# optional: needed as a programmer i.e. for esp32 |
|
|
# optional: needed as a programmer i.e. for esp32 |
|
|
pkgs.avrdude |
|
|
pkgs.avrdude |
|
|
]; |
|
|
]; |
|
|
|
|
|
@ -157,6 +157,7 @@ lib_deps = |
|
|
|
|
|
|
|
|
[env:native] |
|
|
[env:native] |
|
|
platform = native |
|
|
platform = native |
|
|
|
|
|
test_framework = googletest |
|
|
build_flags = -std=c++17 |
|
|
build_flags = -std=c++17 |
|
|
-I src |
|
|
-I src |
|
|
-I test/mocks |
|
|
-I test/mocks |
|
|
|