-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (33 loc) · 888 Bytes
/
flake.nix
File metadata and controls
36 lines (33 loc) · 888 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
31
32
33
34
35
36
{
description = "secp256k1 lib in Elixir";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
parts.url = "github:hercules-ci/flake-parts";
};
outputs =
{ parts, ... }@inputs:
parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
perSystem =
{ pkgs, ... }:
let
beamPackages = pkgs.beam.packages.erlang_28;
elixir = beamPackages.elixir_1_19;
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
elixir
git
autoreconfHook
prettier
];
env = {
MIX_OS_DEPS_COMPILE_PARTITION_COUNT = "16";
ERL_AFLAGS = "+pc unicode -kernel shell_history enabled";
ELIXIR_ERL_OPTIONS = "+sssdio 128";
};
};
};
};
}