mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
21 lines
423 B
Nix
21 lines
423 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "ammonite";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ nequissimus ];
|
|
};
|
|
|
|
nodes = {
|
|
amm =
|
|
{ pkgs, ... }:
|
|
{
|
|
environment.systemPackages = [ (pkgs.ammonite.override { jre = pkgs.jre8; }) ];
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
amm.succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
|
|
'';
|
|
})
|