mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
18 lines
268 B
Nix
18 lines
268 B
Nix
{ lib, buildRebar3, fetchHex }:
|
|
|
|
{ name, version, sha256
|
|
, builder ? buildRebar3
|
|
, hexPkg ? name
|
|
, ... }@attrs:
|
|
|
|
let
|
|
pkg = self: builder (attrs // {
|
|
|
|
src = fetchHex {
|
|
pkg = hexPkg;
|
|
inherit version;
|
|
inherit sha256;
|
|
};
|
|
});
|
|
in
|
|
lib.fix pkg
|