2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildRebar3, fetchHex }:
|
2015-12-10 00:12:37 +01:00
|
|
|
|
2016-01-11 00:25:45 +01:00
|
|
|
{ name, version, sha256
|
2017-06-17 16:28:41 +02:00
|
|
|
, builder ? buildRebar3
|
2015-12-10 21:39:13 +01:00
|
|
|
, hexPkg ? name
|
2015-12-10 00:12:37 +01:00
|
|
|
, ... }@attrs:
|
|
|
|
|
2021-01-23 18:15:07 +01:00
|
|
|
with lib;
|
2015-12-10 00:12:37 +01:00
|
|
|
|
2015-12-18 23:51:51 +01:00
|
|
|
let
|
2017-06-17 16:28:41 +02:00
|
|
|
pkg = self: builder (attrs // {
|
2016-01-10 23:48:44 +01:00
|
|
|
|
2016-01-11 00:25:45 +01:00
|
|
|
src = fetchHex {
|
2015-12-18 23:51:51 +01:00
|
|
|
pkg = hexPkg;
|
|
|
|
inherit version;
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in
|
|
|
|
fix pkg
|