dream2nix/lib/internal/sanitizeRelativePath.nix

8 lines
156 B
Nix

{lib, ...}: let
l = builtins // lib;
sanitizeRelativePath = path:
l.removePrefix "/" (l.toString (l.toPath "/${path}"));
in
sanitizeRelativePath