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