3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/ammonite.nix
2019-11-04 23:51:10 +01:00

21 lines
398 B
Nix

import ./make-test-python.nix ({ pkgs, ...} : {
name = "ammonite";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ nequissimus ];
};
nodes = {
amm =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.ammonite ];
};
};
testScript = ''
start_all()
amm.succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
'';
})