summary refs log tree commit diff
path: root/pkgs/development/erlang-modules/build-hex.nix
blob: ff6e47e5a805645196f554c5cbf44df32ae166cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, buildRebar3, fetchHex }:

{ name, version, sha256
, hexPkg ? name
, ... }@attrs:

with stdenv.lib;

let
  pkg = self: buildRebar3 (attrs // {

    src = fetchHex {
      pkg = hexPkg;
      inherit version;
      inherit sha256;
    };
  });
in
  fix pkg