mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
20 lines
265 B
Nix
20 lines
265 B
Nix
{ stdenv, buildRebar3, fetchHex }:
|
|
|
|
{ name, version, sha256
|
|
, hexPkg ? name
|
|
, ... }@attrs:
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
pkg = self: buildRebar3 (attrs // {
|
|
|
|
src = fetchHex {
|
|
pkg = hexPkg;
|
|
inherit version;
|
|
inherit sha256;
|
|
};
|
|
});
|
|
in
|
|
fix pkg
|