We can use lib.strings.sanitizeDerivationName which does exactly what we want instead of a combination of manually implemented validation and sanitizing functions.
This also adds an integration test with a package that has a name that needs to be sanitized.
We can use
lib.strings.sanitizeDerivationName
which does exactly what we want instead of a combination of manually implemented validation and sanitizing functions.This also adds an integration test with a package that has a name that needs to be sanitized.