lib/tests: Allow overriding pkgs independent of lib being tested

This commit is contained in:
Silvan Mosberger
2020-04-25 23:40:20 +02:00
parent d0b1de5491
commit a89b773984
2 changed files with 18 additions and 8 deletions
+6 -5
View File
@@ -1,10 +1,11 @@
# to run these tests:
# nix-build nixpkgs/lib/tests/maintainers.nix
# If nothing is output, all tests passed
{ pkgs ? import ../.. {} }:
# to run these tests (and the others)
# nix-build nixpkgs/lib/tests/release.nix
{ # The pkgs used for dependencies for the testing itself
pkgs
, lib
}:
let
inherit (pkgs) lib;
inherit (lib) types;
maintainerModule = { config, ... }: {