-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (38 loc) · 928 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
42
43
{
description = "An anyrun plugin that lets you use Home Assistant's Assist.";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
devShell = with pkgs;
mkShell {
buildInputs = [
cargo
clippy
rustc
git
rustfmt
sqlite
diesel-cli
];
};
packages = rec {
anyrun-ha-assist = pkgs.callPackage ./nix {};
default = anyrun-ha-assist;
};
anyrunPlugins = rec {
anyrun-ha-assist = "${packages.default}/lib/libanyrun_ha_assist.so";
default = anyrun-ha-assist;
};
legacyPackages = packages;
}
);
}