2019-10-27 13:56:33 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2017-07-05 03:36:30 +02:00
|
|
|
name = "ammonite";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ nequissimus ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
amm =
|
2018-07-20 22:56:59 +02:00
|
|
|
{ pkgs, ... }:
|
2017-07-05 03:36:30 +02:00
|
|
|
{
|
|
|
|
environment.systemPackages = [ pkgs.ammonite ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-10-27 13:56:33 +01:00
|
|
|
start_all()
|
2017-07-05 03:36:30 +02:00
|
|
|
|
2019-10-27 13:56:33 +01:00
|
|
|
amm.succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
|
2017-07-05 03:36:30 +02:00
|
|
|
'';
|
|
|
|
})
|