about summary refs log tree commit diff
path: root/pkgs/build-support/agda
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-02-12 14:44:16 +0100
committerNaïm Favier <n@monade.li>2023-02-12 14:44:16 +0100
commit65e774e2a4002b762aa576ba1d0f0ed71298c86d (patch)
tree05e49408b3184df85901353d50e2f58c3faeced9 /pkgs/build-support/agda
parentc2166eea486b228862f627b5dc83b2c0d92b7910 (diff)
agda: fix passthru
The current `//` override to `agda.passthru.tests` is non-recursive so
it destroys everything else under `passthru`, and furthermore does not
go through `mkDerivation` so that we end up with different values for
`agda.tests` and `agda.passthru.tests`.

Fix it by moving the `allPackages` test to the definition of
`withPackages`.
Diffstat (limited to 'pkgs/build-support/agda')
-rw-r--r--pkgs/build-support/agda/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/build-support/agda/default.nix b/pkgs/build-support/agda/default.nix
index fed0f6cb3441b..c785e6196db1d 100644
--- a/pkgs/build-support/agda/default.nix
+++ b/pkgs/build-support/agda/default.nix
@@ -20,7 +20,11 @@ let
     nativeBuildInputs = [ makeWrapper ];
     passthru = {
       unwrapped = Agda;
-      tests = { inherit (nixosTests) agda; };
+      inherit withPackages;
+      tests = {
+        inherit (nixosTests) agda;
+        allPackages = withPackages (lib.filter self.lib.isUnbrokenAgdaPackage (lib.attrValues self));
+      };
     };
     inherit (Agda) meta;
   } ''