-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (41 loc) · 883 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
description = "Gleam devshell";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nix-gleam.url = "github:arnarg/nix-gleam";
};
outputs = {
self,
nixpkgs,
nix-gleam,
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
nix-gleam.overlays.default
];
};
shell = pkgs.mkShell {
name = "shell";
packages = with pkgs; [
erlang_nox
gleam
just
rebar3
sqlite
];
};
package = pkgs.buildGleamApplication {
src = ./.;
# Overrides the rebar3 package used, adding
# plugins using `rebar3WithPlugins`.
rebar3Package = pkgs.rebar3WithPlugins {
plugins = with pkgs.beamPackages; [pc];
};
};
in {
devShell.${system} = shell;
packages.${system}.default = package;
};
}