21 lines
285 B
Nix
21 lines
285 B
Nix
|
{ stdenv, buildRebar3, fetchHex }:
|
||
|
|
||
|
{ name, version, sha256
|
||
|
, builder ? buildRebar3
|
||
|
, hexPkg ? name
|
||
|
, ... }@attrs:
|
||
|
|
||
|
with stdenv.lib;
|
||
|
|
||
|
let
|
||
|
pkg = self: builder (attrs // {
|
||
|
|
||
|
src = fetchHex {
|
||
|
pkg = hexPkg;
|
||
|
inherit version;
|
||
|
inherit sha256;
|
||
|
};
|
||
|
});
|
||
|
in
|
||
|
fix pkg
|