1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/development/erlang-modules/build-hex.nix
Eric Merritt d541d0e640 erlang support: seperate hex and rebar3 support
Building Hex packages is a superset of building with rebar3. There is no
need to force folks that use rebar3 but not hex to build with hex. This
commit seperates the rebar3 specific bits and the hex specific bits into
seperate functions that can be used independently.
2016-01-14 14:37:35 -08:00

20 lines
265 B
Nix

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