testers.testEqualDerivation: move from build-support/test-equal-derivation.nix
This commit is contained in:
parent
4a28d0f3bd
commit
52a744b7f8
@ -3,7 +3,7 @@
|
||||
, fetchurl
|
||||
, nixos
|
||||
, testVersion
|
||||
, testEqualDerivation
|
||||
, testers
|
||||
, hello
|
||||
}:
|
||||
|
||||
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
version = testVersion { package = hello; };
|
||||
|
||||
invariant-under-noXlibs =
|
||||
testEqualDerivation
|
||||
testers.testEqualDerivation
|
||||
"hello must not be rebuilt when environment.noXlibs is set."
|
||||
hello
|
||||
(nixos { environment.noXlibs = true; }).pkgs.hello;
|
||||
|
4
pkgs/build-support/testers/default.nix
Normal file
4
pkgs/build-support/testers/default.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ pkgs, lib, callPackage }:
|
||||
{
|
||||
testEqualDerivation = callPackage ./test-equal-derivation.nix { };
|
||||
}
|
@ -904,6 +904,8 @@ with pkgs;
|
||||
# lib functions depending on pkgs
|
||||
inherit (import ../pkgs-lib { inherit lib pkgs; }) formats;
|
||||
|
||||
testers = callPackage ../build-support/testers {};
|
||||
|
||||
### TOOLS
|
||||
|
||||
_3llo = callPackage ../tools/misc/3llo { };
|
||||
@ -10650,8 +10652,6 @@ with pkgs;
|
||||
|
||||
termplay = callPackage ../tools/misc/termplay { };
|
||||
|
||||
testEqualDerivation = callPackage ../build-support/test-equal-derivation.nix { };
|
||||
|
||||
tetrd = callPackage ../applications/networking/tetrd { };
|
||||
|
||||
tewisay = callPackage ../tools/misc/tewisay { };
|
||||
|
Loading…
Reference in New Issue
Block a user