blob: c8971a69f7085cc0f62b6ab633eba3acb735b9fd (
plain)
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
|
{
lib,
withSystem,
inputs,
...
}:
{
flake.legacyPackages.x86_64-linux = withSystem "x86_64-linux" (
{ pkgs, ... }:
let
callPackage = lib.callPackageWith (pkgs // { inherit openwrtPackages; });
openwrtPackages = {
profileFromRelease =
release: (inputs.openwrt-imagebuilder.lib.profiles { inherit pkgs release; }).identifyProfile;
buildOpenWrtImage =
{ profile, ... }@args:
inputs.openwrt-imagebuilder.lib.build (
openwrtPackages.profileFromRelease args.release profile
// lib.removeAttrs args [
"profile"
"release"
]
);
};
in
{
turret = callPackage ./turret.nix { };
}
);
}
|