33 lines
462 B
Nix
33 lines
462 B
Nix
{
|
|
nixpkgs,
|
|
supportedSystems ? [
|
|
"x86_64-linux"
|
|
"aarch64-darwin"
|
|
],
|
|
...
|
|
}:
|
|
let
|
|
inherit (nixpkgs.lib) genAttrs;
|
|
|
|
forEachSupportedSystem =
|
|
f:
|
|
genAttrs supportedSystems (
|
|
system:
|
|
f {
|
|
inherit system;
|
|
pkgs = pkgsFor system;
|
|
}
|
|
);
|
|
|
|
pkgsFor =
|
|
system:
|
|
import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
in
|
|
nixpkgs.lib
|
|
// {
|
|
inherit forEachSupportedSystem pkgsFor;
|
|
}
|