flake.nix: fix lib.{build,profiles} args

This commit is contained in:
Astro 2022-04-28 23:51:14 +02:00
parent 2ddc9f041b
commit fd97d941cd
1 changed files with 8 additions and 6 deletions

View File

@ -11,18 +11,20 @@
lib.build = lib.build =
{ pkgs ? nixpkgs.legacyPackages.x86_64-linux { pkgs ? nixpkgs.legacyPackages.x86_64-linux
, openwrt ? openwrt , openwrt ? openwrt
}: , ...
import ./builder.nix { }@args:
import ./builder.nix (args // {
inherit pkgs openwrt; inherit pkgs openwrt;
}; });
lib.profiles = lib.profiles =
{ pkgs ? nixpkgs.legacyPackages.x86_64-linux { pkgs ? nixpkgs.legacyPackages.x86_64-linux
, release ? "21.02.3" , release ? "21.02.3"
}: , ...
import ./profile.nix { }@args:
import ./profiles.nix (args // {
inherit pkgs release; inherit pkgs release;
}; });
packages.x86_64-linux.profiles-list = import ./profiles-list.nix { packages.x86_64-linux.profiles-list = import ./profiles-list.nix {
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;