Files
esphome/flake.nix
T

34 lines
618 B
Nix

{
description = "esphome deployment shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
esphome
];
shellHook = ''
echo -n "ESPHome "
esphome --version
'';
};
}
);
}