dream2nix/lib/internal/sanitizeRelativePath.nix

8 lines
156 B
Nix
Raw Normal View History

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