forked from nix-community/nixpkgs-terraform-providers-bin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
33 lines (28 loc) · 830 Bytes
/
flake.nix
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
29
30
31
32
33
{
description = "terraform-providers-bin";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
lib = nixpkgs.lib;
forAllSystems = lib.genAttrs [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
in
{
overlay = import ./overlay.nix;
# We use legacyPackages here because default.nix exports a nested tree
# of functions and packages. `packages` only allows a flat set of
# derivations.
legacyPackages = forAllSystems (system:
import ./. {
nixpkgs = nixpkgs.legacyPackages.${system};
}
);
checks = forAllSystems (system:
builtins.removeAttrs self.legacyPackages.${system}.tests [ "recurseForDerivations" ]
);
};
}