mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
21 lines
399 B
Nix
21 lines
399 B
Nix
|
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")
|
||
|
'';
|
||
|
})
|