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