-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathflake.nix
More file actions
28 lines (26 loc) · 738 Bytes
/
flake.nix
File metadata and controls
28 lines (26 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
description = "member-directory custom flox packages";
inputs.nixpkgs.url = "github:flox/nixpkgs/stable";
outputs = { self, nixpkgs }:
let
systems = [
"aarch64-darwin"
"x86_64-darwin"
"aarch64-linux"
"x86_64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
packages = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; };
phpCustom = import ./.flox/pkgs/php.nix { pkgs = pkgs; };
composerCustom = phpCustom.packages.composer;
in {
php-custom = phpCustom;
composer-custom = composerCustom;
default = phpCustom;
}
);
};
}