forked from captain-amygdala/pistorm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
36 lines (36 loc) · 1 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
{
outputs = { self, nixpkgs }:
let
hostPkgs = import nixpkgs { system = "x86_64-linux"; };
overlay = self: super: {
pistorm = self.callPackage ./pistorm.nix {};
e2fsprogs = null;
libraspberrypi = super.libraspberrypi.overrideAttrs (old: { patches = [ ./userland.patch ]; });
pistorm-tar = hostPkgs.callPackage (nixpkgs + "/nixos/lib/make-system-tarball.nix") {
contents = [];
storeContents = [
{
object = self.pistorm;
symlink = "/pistorm";
}
];
};
};
in {
packages.aarch64-linux =
let
pkgs = import nixpkgs { system = "aarch64-linux"; overlays = [ overlay ]; };
in {
inherit (pkgs) pistorm;
};
packages.armv7l-linux =
let
pkgs = import nixpkgs { system = "armv7l-linux"; overlays = [ overlay ]; };
in {
inherit (pkgs) pistorm pistorm-tar;
};
hydraJobs.armv7l-linux = {
inherit (self.packages.armv7l-linux) pistorm pistorm-tar;
};
};
}