-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
31 lines (28 loc) · 817 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
{
description = "ansible-role - simple wrapper for Ansible to run a single role without the need to generate a playbook first";
outputs = { self, nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
pkgsForSystem = system: (import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
});
in
{
overlays.default = _final: prev:
let
inherit (prev) buildGo122Module callPackage lib;
in
{
ansible-role = callPackage ./package.nix { inherit buildGo122Module lib; };
};
packages = forAllSystems (system: rec {
inherit (pkgsForSystem system) ansible-role;
default = ansible-role;
});
};
}