This allows importing the .drv and getting the same store paths as if the input had been passed in as nix expressions defining a proper derivation.
H3S3H752PLJEI7LXA5TGUY5DFD5SRIPTIKWY5WGY6B4OLQRVKTWAC
PMNWRTGJ4GVSMSSAWSUD57B26PCRAHMZIQ5SIWJIK7A74ENKEQLAC
KQS7DSKJHTEHALCPTXMWRX2IBOVC5BWU7RWJ4GP5A2JJSBR7HPKAC
INNOEHO6CTW75YEEGNLUKISQEMOAE4P2C2SEVHEKOVIFHADWY4OAC
OOQ2D3KCLFPYNAN253PHWLBQMB6OMO2KYQWQXLTP65SQAYZWQ5LAC
CQTN62OHT4DY35E2MJEG7GFTVNEE5KRDMV6ASBQLBHN7BUDK7WHAC
my $mainOutput = getMainOutput($prevBuild);
{ storePath => getMainOutput($prevBuild)->path
{ storePath => $mainOutput->path
, outputName => $mainOutput->name , drvPath => $prevBuild->drvPath
, outputName => $mainOutput->name
, drvPath => $prevBuild->drvPath
(defined $input->{outputName} ? "; outputName = \"" . $input->{outputName} . "\"" : "") . (defined $input->{drvPath} ? "; drvPath = " . $input->{drvPath} . "" : "") .
(defined $input->{outputName} ? "; outputName = \"" . $input->{outputName} . "\"" : "") .
(defined $input->{drvPath} ? "; drvPath = " . $input->{drvPath} . "" : "") .