summaryrefslogtreecommitdiff
path: root/pkgs/exneuland.nix
blob: 9cd4c718fb2291e553f38a135f78c924032e9f45 (plain)
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
let
  sources = import ../nix/sources.nix {};
in

with import sources.nixpkgs {};

let
  packages = beam.packagesWith beam.interpreters.erlang;
  src = fetchFromGitLab {
    owner = "hexchen";
    repo = "exneuland";
    rev = "main";
    sha256 = "0zh1vvjhzaymlngg5armhp6xqrdjmnd29hpf7c3ci03h3rg4snbq";
  };

  pname = "exneuland";
  version = "0.0.1";
  mixEnv = "prod";

  mixDeps = packages.fetchMixDeps {
    pname = "mix-deps-${pname}";
    inherit src mixEnv version;
    sha256 = "0nyips2ky6rmgq3xdhrhg4fnw4m2pmck6p1amw9m7qisdqlxhv25";
  };

in (packages.mixRelease.override {
  elixir = (import sources.nixpkgs-unstable {}).elixir_1_12;
}) {
  inherit src pname version mixEnv mixDeps;

  buildInputs = [ rebar3 protobuf ];
}