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 7 days ago
committed by GitHub
parent
commit
dd87371574
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      default.nix
  2. 1
      platformio.ini

7
default.nix

@ -1,11 +1,12 @@
{ pkgs ? import <nixpkgs> {} }:
let
{pkgs ? import <nixpkgs> {}}: let
in
pkgs.mkShell {
buildInputs = [
pkgs.platformio
pkgs.python3
pkgs.gcc
pkgs.gtest
# optional: needed as a programmer i.e. for esp32
pkgs.avrdude
];
}
}

1
platformio.ini

@ -157,6 +157,7 @@ lib_deps =
[env:native]
platform = native
test_framework = googletest
build_flags = -std=c++17
-I src
-I test/mocks

Loading…
Cancel
Save