forked from astarte-platform/astarte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
26 lines (26 loc) · 903 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
{
description = "Open Source IoT platform focused on Data management and processing";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
elixir-utils = {
url = "github:noaccOS/elixir-utils";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = { self, nixpkgs, elixir-utils, flake-utils, ... }:
{
overlays.default = elixir-utils.lib.asdfOverlay { toolVersions = ./.tool-versions; };
} //
flake-utils.lib.eachSystem elixir-utils.lib.defaultSystems (system:
let pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
in {
devShells.default = pkgs.elixirDevShell;
formatter = pkgs.nixpkgs-fmt;
});
}