2019-10-27 12:56:33 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2017-07-05 01:36:30 +00:00
|
|
|
name = "ammonite";
|
2021-01-10 19:08:30 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2017-07-05 01:36:30 +00:00
|
|
|
maintainers = [ nequissimus ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
amm =
|
2018-07-20 20:56:59 +00:00
|
|
|
{ pkgs, ... }:
|
2017-07-05 01:36:30 +00:00
|
|
|
{
|
2020-11-04 17:45:20 +00:00
|
|
|
environment.systemPackages = [ (pkgs.ammonite.override { jre = pkgs.jre8; }) ];
|
2017-07-05 01:36:30 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-10-27 12:56:33 +00:00
|
|
|
start_all()
|
2017-07-05 01:36:30 +00:00
|
|
|
|
2019-10-27 12:56:33 +00:00
|
|
|
amm.succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
|
2017-07-05 01:36:30 +00:00
|
|
|
'';
|
|
|
|
})
|