From 04b4d989fda8f14e6fcd1fee631eab9c54d15b97 Mon Sep 17 00:00:00 2001 From: Hazel Weakly Date: Mon, 16 May 2022 13:32:57 -0700 Subject: [PATCH] Sanitize the final derivation name to ensure length limits are respected (#66) --- check-utils.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-utils.nix b/check-utils.nix index cd2cb76..8aa7050 100644 --- a/check-utils.nix +++ b/check-utils.nix @@ -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 ]; };