nixpkgs/nixos/tests/ammonite.nix

21 lines
399 B
Nix
Raw Normal View History

2017-07-05 03:36:30 +02:00
import ./make-test.nix ({ pkgs, ...} : {
name = "ammonite";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ nequissimus ];
};
nodes = {
amm =
{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.ammonite ];
};
};
testScript = ''
startAll;
$amm->succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
'';
})