1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/nixos/tests/ammonite.nix

21 lines
423 B
Nix
Raw Normal View History

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