nixpkgs/pkgs/development/beam-modules/build-hex.nix
2021-01-24 00:16:29 +07:00

21 lines
283 B
Nix

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