2022-04-27 22:25:32 +02:00
|
|
|
{
|
|
|
|
description = "A very basic flake";
|
|
|
|
|
|
|
|
inputs.openwrt = {
|
|
|
|
url = "git+https://git.openwrt.org/openwrt/openwrt.git?tag=v21.02.3";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, openwrt }: {
|
|
|
|
|
2022-04-28 02:42:17 +02:00
|
|
|
lib.build =
|
|
|
|
{ pkgs ? nixpkgs.legacyPackages.x86_64-linux
|
|
|
|
, openwrt ? openwrt
|
2022-04-28 23:51:14 +02:00
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
import ./builder.nix (args // {
|
2022-04-28 02:42:17 +02:00
|
|
|
inherit pkgs openwrt;
|
2022-04-28 23:51:14 +02:00
|
|
|
});
|
2022-04-28 02:42:17 +02:00
|
|
|
|
|
|
|
lib.profiles =
|
|
|
|
{ pkgs ? nixpkgs.legacyPackages.x86_64-linux
|
|
|
|
, release ? "21.02.3"
|
2022-04-28 23:51:14 +02:00
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
import ./profiles.nix (args // {
|
2022-04-28 02:42:17 +02:00
|
|
|
inherit pkgs release;
|
2022-04-28 23:51:14 +02:00
|
|
|
});
|
2022-04-28 01:17:11 +02:00
|
|
|
|
2022-04-28 02:38:30 +02:00
|
|
|
packages.x86_64-linux.profiles-list = import ./profiles-list.nix {
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
};
|
|
|
|
|
2022-04-27 22:25:32 +02:00
|
|
|
# `nix run .#generate-hashes`
|
|
|
|
packages.x86_64-linux.generate-hashes = import ./generate-hashes.nix {
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
inherit openwrt;
|
|
|
|
};
|
|
|
|
|
2022-04-27 22:29:58 +02:00
|
|
|
packages.x86_64-linux.example-image = import ./example.nix {
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
checks = self.packages;
|
|
|
|
|
|
|
|
hydraJobs = {
|
|
|
|
example-image = nixpkgs.lib.hydraJob self.packages.x86_64-linux.example-image;
|
|
|
|
};
|
2022-04-27 22:25:32 +02:00
|
|
|
};
|
|
|
|
}
|