···193193 normalizePath "/a//b///c/"
194194 => "/a/b/c/"
195195 */
196196- normalizePath = s: (builtins.foldl' (x: y: if y == "/" && hasSuffix "/" x then x else x+y) "" (splitString "" s));
196196+ normalizePath = s: (builtins.foldl' (x: y: if y == "/" && hasSuffix "/" x then x else x+y) "" (stringToCharacters s));
197197198198 /* Depending on the boolean `cond', return either the given string
199199 or the empty string. Useful to concatenate against a bigger string.
+5
pkgs/applications/office/libreoffice/default.nix
···364364 ln -s $out/bin/soffice $out/bin/libreoffice
365365 ln -s $out/lib/libreoffice/share/xdg $out/share/applications
366366367367+ for f in $out/share/applications/*.desktop; do
368368+ substituteInPlace "$f" \
369369+ --replace "Exec=libreoffice${major}.${minor}" "Exec=libreoffice"
370370+ done
371371+367372 cp -r sysui/desktop/icons "$out/share"
368373 sed -re 's@Icon=libreoffice(dev)?[0-9.]*-?@Icon=@' -i "$out/share/applications/"*.desktop
369374