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
|
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
|
2016-01-10 23:25:45 +00:00
|
|
|
pkg = self: buildRebar3 (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
|