WIP
This commit is contained in:
parent
e06b409221
commit
92f83235e0
10 changed files with 382 additions and 159 deletions
|
|
@ -1,4 +1,33 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue