25 lines
627 B
Nix
25 lines
627 B
Nix
{
|
|
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 }: {
|
|
|
|
lib.build = args:
|
|
import ./builder.nix (args // {
|
|
pkgs = if args ? pkgs then args.pkgs else nixpkgs.legacyPackages.x86_64-linux;
|
|
openwrt = if args ? openwrt then args.openwrt else openwrt;
|
|
});
|
|
|
|
# `nix run .#generate-hashes`
|
|
packages.x86_64-linux.generate-hashes = import ./generate-hashes.nix {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
inherit openwrt;
|
|
};
|
|
|
|
};
|
|
}
|