1 import ./make-test-python.nix ({ pkgs, ... }:
4 hello-world = pkgs.writeText "hello-world" ''
5 {-# OPTIONS --guardedness #-}
9 main = run {0ℓ} (putStrLn "Hello World!")
14 meta = with pkgs.lib.maintainers; {
15 maintainers = [ alexarice turion ];
18 nodes.machine = { pkgs, ... }: {
19 environment.systemPackages = [
20 (pkgs.agda.withPackages {
21 pkgs = p: [ p.standard-library ];
24 virtualisation.memorySize = 2000; # Agda uses a lot of memory
28 # Minimal script that typechecks
29 machine.succeed("touch TestEmpty.agda")
30 machine.succeed("agda TestEmpty.agda")
34 "cp ${hello-world} HelloWorld.agda"
36 machine.succeed("agda -l standard-library -i . -c HelloWorld.agda")
38 assert "Hello World!" in machine.succeed(
40 ), "HelloWorld does not run properly"