-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathflake.nix
More file actions
30 lines (26 loc) · 767 Bytes
/
flake.nix
File metadata and controls
30 lines (26 loc) · 767 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
29
30
{
description = "SimpleRisk's Docker and related artifacts";
inputs = {
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
gorinapp.url = "git+https://codeberg.org/wolfangaukang/gorin";
};
outputs = { nixpkgs, gorinapp, ... }:
let
overlays = [
gorinapp.overlays.default
];
forEachSystem = nixpkgs.lib.genAttrs (nixpkgs.lib.systems.flakeExposed);
pkgsFor = forEachSystem (system: import nixpkgs { inherit overlays system; });
in
{
devShells = forEachSystem (system:
let
pkgs = pkgsFor.${system};
in {
default = pkgs.mkShell { packages = (with pkgs; [ docker-compose dockle grype gorin hadolint ]); };
});
};
}