-
Notifications
You must be signed in to change notification settings - Fork 25
/
flake.nix
77 lines (74 loc) · 2.35 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
description = "Unify SDK flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = github:numtide/nix-filter;
zw-testframework = {
url = "git+ssh://[email protected]/z-wave/zw-testframework?rev=cbbf779dfddcabd1470e5f8d7208f903fe716129";
flake = false;
};
ths-cmock = {
url = "git+ssh://[email protected]/z-wave/ths_cmock?rev=0d7a1a1c1ca1a51c96b8f606153daf31cebea6d9";
flake = false;
};
ths-unity = {
url = "git+ssh://[email protected]/z-wave/ths_unity?rev=b0032caca4402da692548f2ee296d3b1b1251ca0";
flake = false;
};
zw-libs2 = {
url = "git+ssh://[email protected]/uic/zw-libs2-flake?rev=4c25c776f99b0e2422cd5588cb11c6f28b267b9a";
};
uic-resources = {
url = "git+ssh://[email protected]/uic/uic-resources?ref=develop";
flake = false;
};
gecko-sdk = {
url = "github:SiliconLabs/gecko_sdk?rev=d4854d2ff06a828161d7032efb1736d0deda40b1";
flake = false;
};
cpcd = {
url = "git+ssh://[email protected]/uic/cpc-daemon-flake.git?rev=e40cf898b8bb80aad70e1349539a8aaf889ea99d";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self
, nixpkgs
, rust-overlay
, flake-utils
, nix-filter
, zw-testframework
, ths-cmock
, ths-unity
, zw-libs2
, uic-resources
, gecko-sdk
, cpcd
}:
flake-utils.lib.eachSystem [ "x86_64-linux" ]
(system:
let
overlays = [
(import rust-overlay)
(import ./overlay.nix)
];
pkgs = import nixpkgs {
inherit system overlays;
};
filter = nix-filter.lib.filter;
in
rec
{
packages = rec {
common = import ./common.nix { inherit pkgs filter; };
libunify = import ./libunify.nix { inherit pkgs filter cpcd common zw-testframework ths-cmock ths-unity; };
zpc = import ./zpc.nix { inherit pkgs cpcd common libunify zw-libs2 ths-unity; };
default = libunify;
};
devShells.default = import ./shell.nix { inherit pkgs cpcd zw-testframework ths-cmock ths-unity gecko-sdk packages; };
apps.zpc = flake-utils.lib.mkApp { drv = packages.zpc; };
}
);
}