mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
fix(lib): toBase64 do not add newline
This commit is contained in:
parent
16647cc5ef
commit
1db416b1e1
1 changed files with 1 additions and 1 deletions
2
lib.nix
2
lib.nix
|
|
@ -34,7 +34,7 @@ rec {
|
|||
|
||||
toBase64 = value:
|
||||
builtins.readFile
|
||||
(pkgs.runCommand "value-to-b64" {} "echo '${value}' | ${pkgs.coreutils}/bin/base64 -w0 > $out");
|
||||
(pkgs.runCommand "value-to-b64" {} "echo -n '${value}' | ${pkgs.coreutils}/bin/base64 -w0 > $out");
|
||||
|
||||
exp = base: exp: foldr (value: acc: acc * base) 1 (range 1 exp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue