hello: Test independence of environment.noXlibs

This commit is contained in:
Robert Hensing
2022-01-08 15:18:57 +01:00
parent c555a4e329
commit 0edf0fd220
+11 -2
View File
@@ -1,7 +1,9 @@
{ lib
, stdenv
, fetchurl
, nixos
, testVersion
, testEqualDerivation
, hello
}:
@@ -16,8 +18,15 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru.tests.version =
testVersion { package = hello; };
passthru.tests = {
version = testVersion { package = hello; };
invariant-under-noXlibs =
testEqualDerivation
"hello must not be rebuilt when environment.noXlibs is set."
hello
(nixos { environment.noXlibs = true; }).pkgs.hello;
};
meta = with lib; {
description = "A program that produces a familiar, friendly greeting";