Make sure the LFE test suite is being run
This commit is contained in:
parent
cb105d35a9
commit
0573610a5f
@ -55,7 +55,7 @@ let
|
||||
};
|
||||
|
||||
lfe = lfe_1_2;
|
||||
lfe_1_2 = lib.callLFE ../interpreters/lfe/1.2.nix { inherit erlang buildRebar3; };
|
||||
lfe_1_2 = lib.callLFE ../interpreters/lfe/1.2.nix { inherit erlang buildRebar3 buildHex; };
|
||||
|
||||
# Non hex packages
|
||||
hex = callPackage ./hex {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, erlang, makeWrapper, coreutils, bash, buildRebar3 }:
|
||||
{ stdenv, fetchFromGitHub, erlang, makeWrapper, coreutils, bash, buildRebar3, buildHex }:
|
||||
|
||||
{ baseName ? "lfe"
|
||||
, version
|
||||
@ -7,13 +7,30 @@
|
||||
, src ? fetchFromGitHub { inherit rev sha256; owner = "rvirding"; repo = "lfe"; }
|
||||
}:
|
||||
|
||||
let
|
||||
proper = buildHex {
|
||||
name = "proper";
|
||||
version = "1.1.1-beta";
|
||||
|
||||
sha256 = "0hnkhs761yjynw9382w8wm4j3x0r7lllzavaq2kh9n7qy3zc1rdx";
|
||||
|
||||
configurePhase = ''
|
||||
${erlang}/bin/escript write_compile_flags include/compile_flags.hrl
|
||||
'';
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
buildRebar3 {
|
||||
name = "${baseName}";
|
||||
name = baseName;
|
||||
|
||||
inherit src version;
|
||||
|
||||
buildInputs = [ erlang makeWrapper ];
|
||||
beamDeps = [ proper ];
|
||||
patches = [ ./no-test-deps.patch ];
|
||||
doCheck = true;
|
||||
checkTarget = "travis";
|
||||
|
||||
# These installPhase tricks are based on Elixir's Makefile.
|
||||
# TODO: Make, upload, and apply a patch.
|
||||
|
Loading…
Reference in New Issue
Block a user