-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luc Tielen
committed
Apr 16, 2019
1 parent
6ea0c93
commit aebdff4
Showing
3 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ lua, pkgs }: | ||
|
||
with pkgs; | ||
with luaPackages; | ||
|
||
let | ||
buildArgs = { inherit buildLuarocksPackage fetchurl lua; }; | ||
deps = builtins.mapAttrs (dep: path: import path buildArgs) { | ||
moonscript = ./moonscript.nix; | ||
luacov = ./luacov.nix; | ||
luacov-coveralls = ./luacov-coveralls.nix; | ||
lanes = ./lanes.nix; | ||
}; | ||
ffi = if isLuaJIT then [] else [ luaffi ]; | ||
buildDeps = [ luarocks lua argparse luafilesystem ]; | ||
testDeps = with deps; ffi ++ [ | ||
lanes | ||
moonscript | ||
busted | ||
luacheck | ||
luacov | ||
luacov-coveralls | ||
]; | ||
in | ||
{ | ||
name = "lua-quickcheck"; | ||
inherit buildDeps testDeps; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
{ luaVersion ? "luajit_2_1", pkgs ? import ./nix/packages.nix {} }: | ||
|
||
(import ./. { inherit luaVersion pkgs; }).shell | ||
with pkgs; | ||
with luaPackages; | ||
|
||
let | ||
pkgInfo = import ./nix/lua-quickcheck.nix { inherit lua pkgs; }; | ||
in | ||
with pkgInfo; mkShell { | ||
buildInputs = buildDeps; | ||
inputsFrom = testDeps; | ||
} |