mirror of
https://github.com/numtide/flake-utils.git
synced 2024-09-17 15:07:14 +03:00
Sanitize the final derivation name to ensure length limits are respected (#66)
This commit is contained in:
parent
12806d31a3
commit
04b4d989fd
@ -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…
Reference in New Issue
Block a user