Skip to content

Commit 43de0c9

Browse files
authored
Merge pull request #97 from lusergit/feat/nix-flake
chore(flake): nix flake
2 parents a1980e4 + 0da2f3a commit 43de0c9

File tree

2 files changed

+164
-0
lines changed

2 files changed

+164
-0
lines changed

flake.lock

Lines changed: 136 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
description = "Astarte VerneMQ plugin publishes incoming messages on an AMQP exchange with some additional metadata, so they can be processed by other components.";
3+
inputs = {
4+
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
5+
flake-utils.url = "github:numtide/flake-utils";
6+
flake-compat = {
7+
url = "github:edolstra/flake-compat";
8+
flake = false;
9+
};
10+
elixir-utils = {
11+
url = "github:noaccOS/elixir-utils";
12+
inputs.nixpkgs.follows = "nixpkgs";
13+
};
14+
};
15+
outputs = { self, nixpkgs, elixir-utils, flake-utils, ... }:
16+
{
17+
overlays.default = elixir-utils.lib.asdfOverlay {
18+
toolVersions = ./.tool-versions;
19+
wxSupport = false;
20+
};
21+
} //
22+
flake-utils.lib.eachSystem elixir-utils.lib.defaultSystems (system:
23+
let pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
24+
in {
25+
devShells.default = pkgs.elixirDevShell;
26+
formatter = pkgs.nixpkgs-fmt;
27+
});
28+
}

0 commit comments

Comments
 (0)