From 612dcbe11ebc4d8739dba5c4d6c98504388c0fda Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 28 Feb 2024 23:01:43 +0100 Subject: lib.lazyDerivation: Support multi-output derivations --- lib/tests/misc.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/tests/misc.nix') diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 193e68a96933c..0f90b173fb34a 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -1973,6 +1973,24 @@ runTests { }).drvPath; }; + testLazyDerivationMultiOutputReturnsDerivationAttrs = let + derivation = { + type = "derivation"; + outputs = ["out" "dev"]; + dev = "test dev"; + out = "test out"; + outPath = "test outPath"; + outputName = "out"; + drvPath = "test drvPath"; + name = "test name"; + system = "test system"; + meta.position = "/hi:23"; + }; + in { + expr = lazyDerivation { inherit derivation; outputs = ["out" "dev"]; passthru.meta.position = "/hi:23"; }; + expected = derivation; + }; + testTypeDescriptionInt = { expr = (with types; int).description; expected = "signed integer"; -- cgit 1.4.1