Unverified Commit ff2b2b96 authored by Yt's avatar Yt Committed by GitHub
Browse files

beamPackages.buildHex: remove (#492919)

parents cf121a69 055f7340
Loading
Loading
Loading
Loading
+0 −31
Original line number Diff line number Diff line
{
  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
+1 −2
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ let
      rebar3Relx = callPackage ./rebar3-release.nix { };

      buildRebar3 = callPackage ./build-rebar3.nix { };
      buildHex = callPackage ./build-hex.nix { };
      buildErlangMk = callPackage ./build-erlang-mk.nix { };
      buildMix = callPackage ./build-mix.nix { };
      fetchMixDeps = callPackage ./fetch-mix-deps.nix { };
@@ -91,7 +90,7 @@ let

      elixir-ls = callPackage ./elixir-ls { inherit elixir; };

      lfe = callPackage ../interpreters/lfe { inherit erlang buildRebar3 buildHex; };
      lfe = callPackage ../interpreters/lfe { inherit erlang buildRebar3 fetchHex; };

      livebook = callPackage ./livebook { inherit beamPackages; };

+12 −3
Original line number Diff line number Diff line
{ lib, buildHex }:
{
  lib,
  fetchHex,
  buildRebar3,
}:

buildHex {
buildRebar3 rec {
  name = "pc";
  version = "1.15.0";

  src = fetchHex {
    pkg = name;
    inherit version;
    sha256 = "sha256-TA+tT2Q3yuNT1RfaIY/ng0e4/6RLmBeIdJTKquVFlbM=";
  };

  meta = {
    description = "Rebar3 port compiler for native code";
+12 −3
Original line number Diff line number Diff line
{ lib, buildHex }:
{
  lib,
  buildRebar3,
  fetchHex,
}:

buildHex {
buildRebar3 rec {
  name = "rebar3_proper";
  version = "0.12.1";

  src = fetchHex {
    pkg = name;
    inherit version;
    sha256 = "1f174fb6h2071wr7qbw9aqqvnglzsjlylmyi8215fhrmi38w94b6";
  };

  meta = {
    description = "rebar3 proper plugin";
+7 −3
Original line number Diff line number Diff line
{
  bash,
  buildHex,
  fetchHex,
  buildRebar3,
  config,
  coreutils,
@@ -26,12 +26,16 @@ let
  mainVersion = versions.major (getVersion erlang);
  maxAssert = versionAtLeast maximumOTPVersion mainVersion;

  proper = buildHex {
  proper = buildRebar3 rec {
    name = "proper";
    version = "1.4.0";

    src = fetchHex {
      pkg = name;
      inherit version;
      sha256 = "sha256-GChYQhhb0z772pfRNKXLWgiEOE2zYRn+4OPPpIhWjLs=";
    };
  };

in
if !config.allowAliases && !maxAssert then