Skip to content

Commit ecf8fb3

Browse files
bin: add erlang binary
1 parent 797d689 commit ecf8fb3

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

bin/erlang/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

bin/erlang/flake.lock

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

bin/erlang/flake.nix

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
description = "Erlang Binary";
3+
4+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
5+
6+
outputs =
7+
{ nixpkgs, ... }:
8+
let
9+
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
10+
in
11+
{
12+
devShells = forAllSystems (
13+
system:
14+
let
15+
pkgs = nixpkgs.legacyPackages.${system};
16+
in
17+
{
18+
default = pkgs.mkShell {
19+
name = "erlang-binary";
20+
buildInputs = with pkgs; [
21+
erlang_27
22+
rebar3
23+
erlang_language_platform
24+
];
25+
};
26+
}
27+
);
28+
};
29+
}

0 commit comments

Comments
 (0)