-
Notifications
You must be signed in to change notification settings - Fork 40
/
flake.nix
43 lines (43 loc) · 1.23 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
{
inputs = {
firmware = {
url = "github:raspberrypi/firmware";
flake = false;
};
};
outputs = { self, nixpkgs, firmware }: {
packages.armv7l-linux = let
platforms = (import nixpkgs { config = {}; }).platforms;
eval = (import ./default.nix {
extraModules = [
./rpi_image.nix
{ system.build.rpi_firmware = firmware; }
];
platform = system: platforms.raspberrypi2;
system = "x86_64-linux";
crossSystem.system = "armv7l-linux";
inherit nixpkgs;
});
zynq_eval = (import ./. {
extraModules = [
./zynq_image.nix
];
platform = system: platforms.raspberrypi2;
system = "x86_64-linux";
crossSystem.system = "armv7l-linux";
inherit nixpkgs;
});
in {
rpi_image = eval.config.system.build.rpi_image;
rpi_image_tar = eval.config.system.build.rpi_image_tar;
toplevel = eval.config.system.build.toplevel;
zynq_image = zynq_eval.config.system.build.zynq_image;
};
hydraJobs = {
armv7l-linux = {
rpi_image_tar = self.packages.armv7l-linux.rpi_image_tar;
zynq_image = self.packages.armv7l-linux.zynq_image;
};
};
};
}