fix(lib): discard string context so derivations are not built instantly

This commit is contained in:
technofab 2025-05-04 21:53:51 +02:00
parent 3a974f218a
commit 5ae5c2dd45

View file

@ -16,7 +16,8 @@
fileRelative = lib.removePrefix ((toString self) + "/") pos.file; fileRelative = lib.removePrefix ((toString self) + "/") pos.file;
in { in {
inherit type name description expected actual; inherit type name description expected actual;
actualDrv = actualDrv.drvPath or ""; # discard string context, otherwise it's being built instantly which we don't want
actualDrv = builtins.unsafeDiscardStringContext (actualDrv.drvPath or "");
pos = pos =
if pos == null if pos == null
then "" then ""