1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/development/beam-modules/build-hex.nix
2021-01-25 18:31:47 +01:00

21 lines
275 B
Nix

{ lib, 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