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
29 "${pkgs.agdaPackages.lib.interfaceFile "Everything.agda"}" == "Everything.agdai"
30 ), "wrong interface file for Everything.agda"
32 "${pkgs.agdaPackages.lib.interfaceFile "tmp/Everything.agda.md"}" == "tmp/Everything.agdai"
33 ), "wrong interface file for tmp/Everything.agda.md"
35 # Minimal script that typechecks
36 machine.succeed("touch TestEmpty.agda")
37 machine.succeed("agda TestEmpty.agda")
41 "cp ${hello-world} HelloWorld.agda"
43 machine.succeed("agda -l standard-library -i . -c HelloWorld.agda")
45 assert "Hello World!" in machine.succeed(
47 ), "HelloWorld does not run properly"