forked from mirrors/nixpkgs
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`.
This commit is contained in:
parent
c2166eea48
commit
65e774e2a4
|
@ -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;
|
||||
} ''
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ pkgs, lib, callPackage, newScope, Agda }:
|
||||
{ pkgs, lib, newScope, Agda }:
|
||||
|
||||
let
|
||||
mkAgdaPackages = Agda: lib.makeScope newScope (mkAgdaPackages' Agda);
|
||||
mkAgdaPackages' = Agda: self: let
|
||||
callPackage = self.callPackage;
|
||||
inherit (self) callPackage;
|
||||
inherit (callPackage ../build-support/agda {
|
||||
inherit Agda self;
|
||||
inherit (pkgs.haskellPackages) ghcWithPackages;
|
||||
|
@ -13,10 +13,7 @@ let
|
|||
|
||||
lib = lib.extend (final: prev: import ../build-support/agda/lib.nix { lib = prev; });
|
||||
|
||||
agda = withPackages [] // {
|
||||
inherit withPackages;
|
||||
passthru.tests.allPackages = withPackages (lib.filter (pkg: self.lib.isUnbrokenAgdaPackage pkg) (lib.attrValues self));
|
||||
};
|
||||
agda = withPackages [];
|
||||
|
||||
standard-library = callPackage ../development/libraries/agda/standard-library {
|
||||
inherit (pkgs.haskellPackages) ghcWithPackages;
|
||||
|
|
Loading…
Reference in a new issue