forked from jandado/hass-smartbox
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
41 lines (39 loc) · 937 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
description = "Smartbox Home Assistant Custom Component";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
};
outputs = { self, nixpkgs, nur }: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
(self: super: {
nur = import nur {
nurpkgs = self;
pkgs = self;
};
})
];
};
in {
devShells.${system}.default = let
python = pkgs.nur.repos.graham33.home-assistant.python;
hass-smartbox = pkgs.nur.repos.graham33.hass-smartbox.overridePythonAttrs (o: {
propagatedBuildInputs = (o.propagatedBuildInputs or []) ++ (with python.pkgs; [
]);
});
in pkgs.mkShell {
inputsFrom = [
hass-smartbox
];
packages = with pkgs; [
black
mypy
py-spy
ruff
];
};
};
}