Skip to content

Commit

Permalink
pc: 1.2.0 -> 1.6.0
Browse files Browse the repository at this point in the history
Also import rebar3 port compiler independently of hex-packages.nix.
  • Loading branch information
gleber committed Sep 11, 2017
1 parent adbc1ed commit c806641
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pkgs/development/beam-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ let
inherit callPackage erlang;
beamPackages = self;

hexRegistrySnapshot = callPackage ./hex-registry-snapshot.nix { };

rebar = callPackage ../tools/build-managers/rebar { };
rebar3-open = callPackage ../tools/build-managers/rebar3 {
hermeticRebar3 = false;
Expand All @@ -28,7 +30,10 @@ let
hermeticRebar3 = true;
};

hexRegistrySnapshot = callPackage ./hex-registry-snapshot.nix { };
# rebar3 port compiler plugin is required by buildRebar3
pc_1_6_0 = callPackage ./pc {};
pc = pc_1_6_0;

fetchHex = callPackage ./fetch-hex.nix { };

buildRebar3 = callPackage ./build-rebar3.nix {};
Expand Down Expand Up @@ -57,12 +62,16 @@ let
lfe = lfe_1_2;
lfe_1_2 = lib.callLFE ../interpreters/lfe/1.2.nix { inherit erlang buildRebar3 buildHex; };

# Non hex packages
# Non hex packages. Examples how to build Rebar/Mix packages with and
# without helper functions buildRebar3 and buildMix.
hex = callPackage ./hex {};
webdriver = callPackage ./webdriver {};
relxExe = callPackage ../tools/erlang/relx-exe {};

# The tool used to upgrade hex-packages.nix.
hex2nix = callPackage ../tools/erlang/hex2nix {};

# An example of Erlang/C++ package.
cuter = callPackage ../tools/erlang/cuter {};
relxExe = callPackage ../tools/erlang/relx-exe {};
};
in makeExtensible packages
13 changes: 13 additions & 0 deletions pkgs/development/beam-modules/pc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ stdenv, buildHex }:

buildHex {
name = "pc";
version = "1.6.0";
sha256 = "0xq411ig5ny3iilkkkqa4vm3w3dgjc9cfzkqwk8pm13dw9mcm8h0";

meta = {
description = ''a rebar3 port compiler for native code'';
license = stdenv.lib.licenses.mit;
homepage = "https://github.com/blt/port_compiler";
};
}

0 comments on commit c806641

Please sign in to comment.