Skip to content

Commit dd87371

Browse files
authored
Merge pull request #2873 from ckoehler/fix/nix-devshell
build: add gcc, gtest to nix shell, fix native test framework
2 parents 1869b57 + 4f7c1cb commit dd87371

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

default.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
{ pkgs ? import <nixpkgs> {} }:
2-
let
1+
{pkgs ? import <nixpkgs> {}}: let
32
in
43
pkgs.mkShell {
54
buildInputs = [
65
pkgs.platformio
76
pkgs.python3
7+
pkgs.gcc
8+
pkgs.gtest
89
# optional: needed as a programmer i.e. for esp32
910
pkgs.avrdude
1011
];
11-
}
12+
}

platformio.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ lib_deps =
157157

158158
[env:native]
159159
platform = native
160+
test_framework = googletest
160161
build_flags = -std=c++17
161162
-I src
162163
-I test/mocks

0 commit comments

Comments
 (0)