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