nixpkgs/pkgs/development/beam-modules/build-hex.nix

21 lines
283 B
Nix
Raw Normal View History

2021-01-23 17:15:07 +00:00
{ lib, stdenv, buildRebar3, fetchHex }:
2015-12-09 23:12:37 +00:00
{ name, version, sha256
, builder ? buildRebar3
, hexPkg ? name
2015-12-09 23:12:37 +00:00
, ... }@attrs:
2021-01-23 17:15:07 +00:00
with lib;
2015-12-09 23:12:37 +00:00
let
pkg = self: builder (attrs // {
src = fetchHex {
pkg = hexPkg;
inherit version;
inherit sha256;
};
});
in
fix pkg