maintainers/build: enable cross builds
This commit is contained in:
parent
1887bf47dd
commit
876e7e2883
@ -1,10 +1,18 @@
|
|||||||
{ maintainer }:
|
{ maintainer
|
||||||
|
, localSystem ? { system = args.system or builtins.currentSystem; }
|
||||||
|
, system ? localSystem.system
|
||||||
|
, crossSystem ? localSystem
|
||||||
|
, ...
|
||||||
|
}@args:
|
||||||
|
|
||||||
# based on update.nix
|
# based on update.nix
|
||||||
# nix-build build.nix --argstr maintainer <yourname>
|
# nix-build build.nix --argstr maintainer <yourname>
|
||||||
|
|
||||||
|
# to build for aarch64-linux using boot.binfmt.emulatedSystems:
|
||||||
|
# nix-build build.nix --argstr maintainer <yourname> --argstr system aarch64-linux
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = import ./../../default.nix {};
|
pkgs = import ./../../default.nix (removeAttrs args [ "maintainer" ]);
|
||||||
maintainer_ = pkgs.lib.maintainers.${maintainer};
|
maintainer_ = pkgs.lib.maintainers.${maintainer};
|
||||||
packagesWith = cond: return: set:
|
packagesWith = cond: return: set:
|
||||||
(pkgs.lib.flatten
|
(pkgs.lib.flatten
|
||||||
|
Loading…
Reference in New Issue
Block a user