2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildRebar3, fetchHex }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
{ name, version, sha256
|
|
|
|
, builder ? buildRebar3
|
|
|
|
, hexPkg ? name
|
|
|
|
, ... }@attrs:
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pkg = self: builder (attrs // {
|
|
|
|
|
|
|
|
src = fetchHex {
|
|
|
|
pkg = hexPkg;
|
|
|
|
inherit version;
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in
|
|
|
|
fix pkg
|