forked from fluidattacks/makes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
25 lines (21 loc) · 682 Bytes
/
flake.nix
File metadata and controls
25 lines (21 loc) · 682 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
{
description = "A DevSecOps framework powered by Nix!";
inputs.nixpkgs.url = "github:nix-community/nixpkgs.lib";
outputs = {nixpkgs, ...} @ inputs: let
makeOutputsForSystem = system: {
apps.${system}.default = {
program = "${inputs.self.packages.${system}.default}/bin/m";
type = "app";
};
lib.${system} = import ./src/args/agnostic.nix {inherit system;};
packages.${system}.default = import ./default.nix {inherit system;};
};
in
builtins.foldl' nixpkgs.lib.recursiveUpdate {}
(builtins.map makeOutputsForSystem [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
]);
}