testEqualDerivation: Rely on mkDerivation to sanitize name

This commit is contained in:
Robert Hensing 2022-03-30 10:26:41 +02:00
parent 225ca9088a
commit c39eff52dc

View file

@ -23,7 +23,7 @@ let
drvB = builtins.unsafeDiscardOutputDependency b.drvPath or (throw "testEqualDerivation third argument must be a package");
name =
if a?name
then lib.strings.sanitizeDerivationName "testEqualDerivation-${a.name}"
then "testEqualDerivation-${a.name}"
else "testEqualDerivation";
in
if drvA == drvB then