Sanitize the final derivation name to ensure length limits are respected (#66)

This commit is contained in:
Hazel Weakly 2022-05-16 13:32:57 -07:00 committed by GitHub
parent 12806d31a3
commit 04b4d989fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,8 @@ let
str = it: if it == null then "null" else (sanitizeDerivationName it);
test = name: command: derivation {
inherit name system;
inherit system;
name = str name;
builder = "/bin/sh";
args = [ "-c" command ];
};