summary refs log blame commit diff
path: root/pkgs/development/beam-modules/build-hex.nix
blob: 27ce64582f34fb5bd07c91e58e3c46d55bf1085c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                  
 
                       
                       
               



                
   
                                 
 
                    


                      



         
{ 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