Skip to content

Commit 4a71b0a

Browse files
authored
build-support/agda: Keep passthru in mkDerivation (NixOS#465615)
2 parents b1a6c3f + 1edff9d commit 4a71b0a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pkgs/build-support/agda/default.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ let
9494
{
9595
pname,
9696
meta,
97+
passthru ? { },
9798
buildInputs ? [ ],
9899
libraryName ? pname,
99100
libraryFile ? "${libraryName}.agda-lib",
@@ -145,9 +146,13 @@ let
145146
meta = if meta.broken or false then meta // { hydraPlatforms = platforms.none; } else meta;
146147

147148
# Retrieve all packages from the finished package set that have the current package as a dependency and build them
148-
passthru.tests = filterAttrs (
149-
name: pkg: self.lib.isUnbrokenAgdaPackage pkg && elem pname (map (pkg: pkg.pname) pkg.buildInputs)
150-
) self;
149+
passthru = passthru // {
150+
tests =
151+
passthru.tests or { }
152+
// filterAttrs (
153+
name: pkg: self.lib.isUnbrokenAgdaPackage pkg && elem pname (map (pkg: pkg.pname) pkg.buildInputs)
154+
) self;
155+
};
151156
};
152157
in
153158
{

0 commit comments

Comments
 (0)