mirror of
https://github.com/numtide/flake-utils.git
synced 2025-03-15 04:58:05 +00:00
Sanitize the final derivation name to ensure length limits are respected (#66)
This commit is contained in:
parent
12806d31a3
commit
04b4d989fd
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ let
|
||||||
str = it: if it == null then "null" else (sanitizeDerivationName it);
|
str = it: if it == null then "null" else (sanitizeDerivationName it);
|
||||||
|
|
||||||
test = name: command: derivation {
|
test = name: command: derivation {
|
||||||
inherit name system;
|
inherit system;
|
||||||
|
name = str name;
|
||||||
builder = "/bin/sh";
|
builder = "/bin/sh";
|
||||||
args = [ "-c" command ];
|
args = [ "-c" command ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue