Skip to content

Commit d30ec2a

Browse files
committed
Add flake.nix and .envrc for development on NixOS
1 parent ed921ce commit d30ec2a

3 files changed

Lines changed: 80 additions & 0 deletions

File tree

.envrc.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
description = "HayBox firmware";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils, ... }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let pkgs = import nixpkgs { inherit system; };
12+
in {
13+
devShells.default = with pkgs;
14+
mkShell {
15+
buildInputs = [ python3 platformio python312Packages.grpcio-tools ];
16+
};
17+
});
18+
}

0 commit comments

Comments
 (0)